pub enum TryGet<H, R, E> {
Ready(TaskResult<R, E>),
Pending(H),
}Expand description
Result of a non-blocking attempt to retrieve a task result.
Variants§
Ready(TaskResult<R, 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