Struct WaitForCancellationFutureOwned

#[must_use = "futures do nothing unless polled"]
pub struct WaitForCancellationFutureOwned { /* private fields */ }

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

This is the counterpart to WaitForCancellationFuture that takes CancellationToken by value instead of using a reference.

Trait Implementations

impl Debug for WaitForCancellationFutureOwned

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

impl Future for WaitForCancellationFutureOwned

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

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

Auto Trait Implementations

impl !Freeze for WaitForCancellationFutureOwned

impl !RefUnwindSafe for WaitForCancellationFutureOwned

impl !UnsafeUnpin for WaitForCancellationFutureOwned

impl !UnwindSafe for WaitForCancellationFutureOwned

impl Send for WaitForCancellationFutureOwned

impl Sync for WaitForCancellationFutureOwned

Blanket Implementations

impl<F> IntoFuture for WaitForCancellationFutureOwned where F: Future,

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

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for WaitForCancellationFutureOwned where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for WaitForCancellationFutureOwned where T: ?Sized,

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

impl<T> From<T> for WaitForCancellationFutureOwned

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for WaitForCancellationFutureOwned where T: Future + ?Sized,

impl<T, U> Into<U> for WaitForCancellationFutureOwned 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 WaitForCancellationFutureOwned 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 WaitForCancellationFutureOwned where U: TryFrom<T>,

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