pub enum TaskRunOutcome<Output> {
Completed(Output),
Paused,
}Expand description
The observable outcome of calling Task::run or Task::resume.
Variants§
Completed(Output)
The task reached its finish transition and produced an output.
Paused
The task paused and can be continued with Task::resume.
Trait Implementations§
Source§impl<Output: Clone> Clone for TaskRunOutcome<Output>
impl<Output: Clone> Clone for TaskRunOutcome<Output>
Source§impl<Output: Debug> Debug for TaskRunOutcome<Output>
impl<Output: Debug> Debug for TaskRunOutcome<Output>
impl<Output: Eq> Eq for TaskRunOutcome<Output>
Source§impl<Output: PartialEq> PartialEq for TaskRunOutcome<Output>
impl<Output: PartialEq> PartialEq for TaskRunOutcome<Output>
impl<Output: PartialEq> StructuralPartialEq for TaskRunOutcome<Output>
Auto Trait Implementations§
impl<Output> Forget for TaskRunOutcome<Output>
impl<Output> Freeze for TaskRunOutcome<Output>where
Output: Freeze,
impl<Output> RefUnwindSafe for TaskRunOutcome<Output>where
Output: RefUnwindSafe,
impl<Output> Send for TaskRunOutcome<Output>where
Output: Send,
impl<Output> Sync for TaskRunOutcome<Output>where
Output: Sync,
impl<Output> Unpin for TaskRunOutcome<Output>where
Output: Unpin,
impl<Output> UnsafeUnpin for TaskRunOutcome<Output>where
Output: UnsafeUnpin,
impl<Output> UnwindSafe for TaskRunOutcome<Output>where
Output: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more