Enum meio::TaskError [−][src]
pub enum TaskError { Interrupted, Other(Error), }
An error that can happen in a task.
Variants
The task was interrupted.
Other(Error)
Task had any other error.
Implementations
impl TaskError
[src]
impl TaskError
[src]pub fn is_interrupted(&self) -> bool
[src]
pub fn is_interrupted(&self) -> bool
[src]If the task was interrupted it returs true
.
pub fn into_other(self) -> Option<Error>
[src]
pub fn into_other(self) -> Option<Error>
[src]Converts the error into other error value if the task wasn’t interrupted.
Trait Implementations
impl Error for TaskError
[src]
impl Error for TaskError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for TaskError
impl Send for TaskError
impl Sync for TaskError
impl Unpin for TaskError
impl !UnwindSafe for TaskError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more