pub struct TimeoutError;
Expand description
An error value given when a function times out.
This value is generated when the timeout from
SleepProviderExt::timeout
expires before the provided future
is ready.
Trait Implementations§
Source§impl Clone for TimeoutError
impl Clone for TimeoutError
Source§fn clone(&self) -> TimeoutError
fn clone(&self) -> TimeoutError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeoutError
impl Debug for TimeoutError
Source§impl Display for TimeoutError
impl Display for TimeoutError
Source§impl Error for TimeoutError
impl Error for TimeoutError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TimeoutError> for Error
impl From<TimeoutError> for Error
Source§fn from(err: TimeoutError) -> Error
fn from(err: TimeoutError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for TimeoutError
impl PartialEq for TimeoutError
impl Copy for TimeoutError
impl Eq for TimeoutError
impl StructuralPartialEq for TimeoutError
Auto Trait Implementations§
impl Freeze for TimeoutError
impl RefUnwindSafe for TimeoutError
impl Send for TimeoutError
impl Sync for TimeoutError
impl Unpin for TimeoutError
impl UnwindSafe for TimeoutError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> ErrorReport for Ewhere
E: Error + 'static,
impl<E> ErrorReport for Ewhere
E: Error + 'static,
Source§fn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes