Struct tokio_executor::current_thread::BlockError
source · 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>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<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