pub enum TaskJoinOutcome<T> {
Completed(T),
Aborted,
Failed(JoinError),
Incomplete,
}Expand description
The observed result of bounded shutdown for one explicitly singular task.
Variants§
Completed(T)
The task returned before either shutdown deadline.
Aborted
The task was canceled by the forced-abort phase.
Failed(JoinError)
The task failed before or after forced abort.
Incomplete
The task did not finish within the supplied bounds and remains owned.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TaskJoinOutcome<T>
impl<T> !UnwindSafe for TaskJoinOutcome<T>
impl<T> Freeze for TaskJoinOutcome<T>where
T: Freeze,
impl<T> Send for TaskJoinOutcome<T>where
T: Send,
impl<T> Sync for TaskJoinOutcome<T>where
T: Sync,
impl<T> Unpin for TaskJoinOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for TaskJoinOutcome<T>where
T: UnsafeUnpin,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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