Struct WaitForCancellationFuture

#[must_use = "futures do nothing unless polled"]
pub struct WaitForCancellationFuture<'a> { /* private fields */ }

A Future that is resolved once the corresponding CancellationToken is cancelled.

Trait Implementations

impl<'__pin, 'a> Unpin for WaitForCancellationFuture<'a> where PinnedFieldsOf<__Origin<'__pin, 'a>>: Unpin,

impl<'a> Debug for WaitForCancellationFuture<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'a> Future for WaitForCancellationFuture<'a>

type Output = ();
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>

Auto Trait Implementations

impl<'a> !Freeze for WaitForCancellationFuture<'a>

impl<'a> !RefUnwindSafe for WaitForCancellationFuture<'a>

impl<'a> !UnsafeUnpin for WaitForCancellationFuture<'a>

impl<'a> !UnwindSafe for WaitForCancellationFuture<'a>

impl<'a> Send for WaitForCancellationFuture<'a>

impl<'a> Sync for WaitForCancellationFuture<'a>

Blanket Implementations

impl<F> IntoFuture for WaitForCancellationFuture<'a> where F: Future,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

impl<T> Any for WaitForCancellationFuture<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for WaitForCancellationFuture<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for WaitForCancellationFuture<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for WaitForCancellationFuture<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for WaitForCancellationFuture<'a> where T: Future + ?Sized,

impl<T, U> Into<U> for WaitForCancellationFuture<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for WaitForCancellationFuture<'a> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for WaitForCancellationFuture<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>