pub struct BlockingTask<T> { /* private fields */ }Expand description
Completion of an admitted job. Dropping it cancels work still waiting to run.
Trait Implementations§
Source§impl<T> Future for BlockingTask<T>
impl<T> Future for BlockingTask<T>
Source§type Output = Result<T, BlockingError>
type Output = Result<T, BlockingError>
The type of value produced on completion.
Auto Trait Implementations§
impl<T> Freeze for BlockingTask<T>where
Pending<T>: Freeze,
impl<T> RefUnwindSafe for BlockingTask<T>where
Pending<T>: RefUnwindSafe,
impl<T> Send for BlockingTask<T>where
Pending<T>: Send,
impl<T> Sync for BlockingTask<T>where
Pending<T>: Sync,
impl<T> Unpin for BlockingTask<T>where
Pending<T>: Unpin,
impl<T> UnsafeUnpin for BlockingTask<T>where
Pending<T>: UnsafeUnpin,
impl<T> UnwindSafe for BlockingTask<T>where
Pending<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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more