pub enum TimeoutError<T, E> {
Timer(T, TimerError),
TimedOut(T),
Inner(E),
}Expand description
The error type for timeout operations.
Variants§
Timer(T, TimerError)
An error caused by the timer
TimedOut(T)
The operation timed out
Inner(E)
Inner error
Trait Implementations§
Source§impl<T: Clone, E: Clone> Clone for TimeoutError<T, E>
impl<T: Clone, E: Clone> Clone for TimeoutError<T, E>
Source§fn clone(&self) -> TimeoutError<T, E>
fn clone(&self) -> TimeoutError<T, E>
Returns a duplicate 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<T, E: Error> Debug for TimeoutError<T, E>
impl<T, E: Error> Debug for TimeoutError<T, E>
Source§impl<T, E: Error> Display for TimeoutError<T, E>
impl<T, E: Error> Display for TimeoutError<T, E>
Source§impl<T, E: Error> Error for TimeoutError<T, E>
impl<T, E: Error> Error for TimeoutError<T, E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl<T, E> Freeze for TimeoutError<T, E>
impl<T, E> RefUnwindSafe for TimeoutError<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for TimeoutError<T, E>
impl<T, E> Sync for TimeoutError<T, E>
impl<T, E> Unpin for TimeoutError<T, E>
impl<T, E> UnwindSafe for TimeoutError<T, E>where
T: UnwindSafe,
E: UnwindSafe,
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