Struct tokio_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>
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)>
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.