pub struct RunTimeoutError { /* private fields */ }
Expand description
Error returned by the run_timeout
function.
Implementations§
Source§impl 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§
Source§impl Debug for RunTimeoutError
impl Debug for RunTimeoutError
Source§impl Display for RunTimeoutError
impl Display for RunTimeoutError
Source§impl Error for RunTimeoutError
impl Error for RunTimeoutError
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 From<EnterError> for RunTimeoutError
impl From<EnterError> for RunTimeoutError
Source§fn from(_: EnterError) -> Self
fn from(_: EnterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RunTimeoutError
impl RefUnwindSafe for RunTimeoutError
impl Send for RunTimeoutError
impl Sync for RunTimeoutError
impl Unpin for RunTimeoutError
impl UnwindSafe for RunTimeoutError
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