Struct tokio_current_thread::RunTimeoutError
source · [−]pub struct RunTimeoutError { /* private fields */ }
Expand description
Error returned by the run_timeout
function.
Implementations
sourceimpl RunTimeoutError
impl RunTimeoutError
sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Returns true
if the error was caused by the operation timing out.
Trait Implementations
sourceimpl Debug for RunTimeoutError
impl Debug for RunTimeoutError
sourceimpl Display for RunTimeoutError
impl Display for RunTimeoutError
sourceimpl Error for RunTimeoutError
impl Error for RunTimeoutError
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 From<EnterError> for RunTimeoutError
impl From<EnterError> for RunTimeoutError
sourcefn from(_: EnterError) -> Self
fn from(_: EnterError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RunTimeoutError
impl Send for RunTimeoutError
impl Sync for RunTimeoutError
impl Unpin for RunTimeoutError
impl UnwindSafe for RunTimeoutError
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