pub enum RunTaskError<E> {
TaskPanic,
TaskAborted,
TaskError(E),
}Variants§
Implementations§
Source§impl<E> RunTaskError<E>
impl<E> RunTaskError<E>
pub fn is_panic(&self) -> bool
pub fn is_aborted(&self) -> bool
pub fn is_task_error(&self) -> bool
Trait Implementations§
Source§impl<E: Debug> Debug for RunTaskError<E>
impl<E: Debug> Debug for RunTaskError<E>
Source§impl<E: Ord> Ord for RunTaskError<E>
impl<E: Ord> Ord for RunTaskError<E>
Source§fn cmp(&self, other: &RunTaskError<E>) -> Ordering
fn cmp(&self, other: &RunTaskError<E>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<E: PartialEq> PartialEq for RunTaskError<E>
impl<E: PartialEq> PartialEq for RunTaskError<E>
Source§impl<E: PartialOrd> PartialOrd for RunTaskError<E>
impl<E: PartialOrd> PartialOrd for RunTaskError<E>
impl<E: Eq> Eq for RunTaskError<E>
impl<E> StructuralPartialEq for RunTaskError<E>
Auto Trait Implementations§
impl<E> Freeze for RunTaskError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RunTaskError<E>where
E: RefUnwindSafe,
impl<E> Send for RunTaskError<E>where
E: Send,
impl<E> Sync for RunTaskError<E>where
E: Sync,
impl<E> Unpin for RunTaskError<E>where
E: Unpin,
impl<E> UnwindSafe for RunTaskError<E>where
E: UnwindSafe,
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