pub struct CancelFuture<T: Task<U>, U> { /* private fields */ }
Expand description
Future returned by Task::cancel()
.
This future resolves when the underlying task cancellation is complete. The future completes regardless of whether the task was successfully cancelled or had already finished.
Trait Implementations§
Source§impl<T: Task<U>, U> Debug for CancelFuture<T, U>
impl<T: Task<U>, U> Debug for CancelFuture<T, U>
Source§impl<T: Task<U>, U> Future for CancelFuture<T, U>
impl<T: Task<U>, U> Future for CancelFuture<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for CancelFuture<T, U>where
T: Freeze,
impl<T, U> RefUnwindSafe for CancelFuture<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for CancelFuture<T, U>
impl<T, U> Sync for CancelFuture<T, U>
impl<T, U> Unpin for CancelFuture<T, U>
impl<T, U> UnwindSafe for CancelFuture<T, U>where
T: UnwindSafe,
U: 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> FutureExt for F
impl<F> FutureExt for F
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