pub enum TryGet<H, R, E> {
Ready(Result<R, TaskExecutionError<E>>),
Pending(H),
}Expand description
Result of a non-blocking attempt to retrieve a task result.
Variants§
Ready(Result<R, TaskExecutionError<E>>)
The task result is ready.
Pending(H)
The task has not completed and the handle is returned to the caller.
Auto Trait Implementations§
impl<H, R, E> Freeze for TryGet<H, R, E>
impl<H, R, E> RefUnwindSafe for TryGet<H, R, E>
impl<H, R, E> Send for TryGet<H, R, E>
impl<H, R, E> Sync for TryGet<H, R, E>
impl<H, R, E> Unpin for TryGet<H, R, E>
impl<H, R, E> UnsafeUnpin for TryGet<H, R, E>
impl<H, R, E> UnwindSafe for TryGet<H, R, E>
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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