pub enum TaskOutcome<T> {
Completed(T),
Panicked(String),
}Expand description
The callback result keeps application Result<T, E> separate from a task panic.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TaskOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for TaskOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for TaskOutcome<T>where
T: Send,
impl<T> Sync for TaskOutcome<T>where
T: Sync,
impl<T> Unpin for TaskOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for TaskOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TaskOutcome<T>where
T: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.