pub enum BlockOnTimeoutError {
Io(Error),
TimedOut(Duration),
}Expand description
Error returned by BlockingRuntime::block_on_with_timeout.
Variants§
Io(Error)
The executor could not be accessed or constructed.
TimedOut(Duration)
The deadline elapsed before the future completed.
Trait Implementations§
Source§impl Debug for BlockOnTimeoutError
impl Debug for BlockOnTimeoutError
Source§impl Display for BlockOnTimeoutError
impl Display for BlockOnTimeoutError
Source§impl Error for BlockOnTimeoutError
impl Error for BlockOnTimeoutError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for BlockOnTimeoutError
impl !UnwindSafe for BlockOnTimeoutError
impl Freeze for BlockOnTimeoutError
impl Send for BlockOnTimeoutError
impl Sync for BlockOnTimeoutError
impl Unpin for BlockOnTimeoutError
impl UnsafeUnpin for BlockOnTimeoutError
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