pub struct BlockError<T> { /* private fields */ }
Expand description
Error returned by the block_on
function.
Implementations§
Source§impl<T> BlockError<T>
impl<T> BlockError<T>
Sourcepub fn into_inner(self) -> Option<T>
pub fn into_inner(self) -> Option<T>
Returns the error yielded by the future being blocked on
Trait Implementations§
Source§impl<T: Debug> Debug for BlockError<T>
impl<T: Debug> Debug for BlockError<T>
Source§impl<T> Display for BlockError<T>
impl<T> Display for BlockError<T>
Source§impl<T: Debug> Error for BlockError<T>
impl<T: Debug> Error for BlockError<T>
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
Source§impl<T> From<EnterError> for BlockError<T>
impl<T> From<EnterError> for BlockError<T>
Source§fn from(_: EnterError) -> Self
fn from(_: EnterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for BlockError<T>where
T: Freeze,
impl<T> RefUnwindSafe for BlockError<T>where
T: RefUnwindSafe,
impl<T> Send for BlockError<T>where
T: Send,
impl<T> Sync for BlockError<T>where
T: Sync,
impl<T> Unpin for BlockError<T>where
T: Unpin,
impl<T> UnwindSafe for BlockError<T>where
T: 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