Struct tokio_current_thread::BlockError
source · [−]pub struct BlockError<T> { /* private fields */ }
Expand description
Error returned by the block_on
function.
Implementations
sourceimpl<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
sourceimpl<T: Debug> Debug for BlockError<T>
impl<T: Debug> Debug for BlockError<T>
sourceimpl<T> Display for BlockError<T>
impl<T> Display for BlockError<T>
sourceimpl<T: Debug> Error for BlockError<T>
impl<T: Debug> Error for BlockError<T>
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl<T> From<EnterError> for BlockError<T>
impl<T> From<EnterError> for BlockError<T>
sourcefn from(_: EnterError) -> Self
fn from(_: EnterError) -> Self
Performs the conversion.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more