Struct TrackCompletionFuture

pub struct TrackCompletionFuture<F, C, H> { /* private fields */ }

Attaches a C-typed completion tracker to the result of an F-typed Future.

Implementations

impl<F, C, H> TrackCompletionFuture<F, C, H>

const fn new(completion: C, handle: H, future: F) -> Self

Wraps a future, propagating the tracker into its value if successful.

Trait Implementations

impl<'__pin, F, C, H> Unpin for TrackCompletionFuture<F, C, H> where PinnedFieldsOf<__Origin<'__pin, F, C, H>>: Unpin,

impl<F, C, H, T, E> Future for TrackCompletionFuture<F, C, H> where F: Future<Output = Result<T, E>>, C: TrackCompletion<H, T>,

type Output = Result<<C as TrackCompletion<H, T>>::Output, E>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<F: Debug, C: Debug, H: Debug> Debug for TrackCompletionFuture<F, C, H>

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

Auto Trait Implementations

impl<F, C, H> Freeze for TrackCompletionFuture<F, C, H> where F: Freeze, Option<H>: Freeze, C: Freeze,

impl<F, C, H> RefUnwindSafe for TrackCompletionFuture<F, C, H> where F: RefUnwindSafe, Option<H>: RefUnwindSafe, C: RefUnwindSafe,

impl<F, C, H> Send for TrackCompletionFuture<F, C, H> where F: Send, Option<H>: Send, C: Send,

impl<F, C, H> Sync for TrackCompletionFuture<F, C, H> where F: Sync, Option<H>: Sync, C: Sync,

impl<F, C, H> UnsafeUnpin for TrackCompletionFuture<F, C, H> where F: UnsafeUnpin, Option<H>: UnsafeUnpin, C: UnsafeUnpin,

impl<F, C, H> UnwindSafe for TrackCompletionFuture<F, C, H> where F: UnwindSafe, Option<H>: UnwindSafe, C: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for TrackCompletionFuture<F, C, H> where F: Future,

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

impl<F, T, E> TryFuture for TrackCompletionFuture<F, C, H> where F: Future<Output = Result<T, E>> + ?Sized,

type Ok = T;
type Error = E;
fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>

impl<Fut> TryFutureExt for TrackCompletionFuture<F, C, H> where Fut: TryFuture + ?Sized,

impl<T> Any for TrackCompletionFuture<F, C, H> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for TrackCompletionFuture<F, C, H> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for TrackCompletionFuture<F, C, H> where T: ?Sized,

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

impl<T> From<T> for TrackCompletionFuture<F, C, H>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for TrackCompletionFuture<F, C, H> where T: Future + ?Sized,

impl<T> FutureExt for TrackCompletionFuture<F, C, H> where T: Future + ?Sized,

impl<T> Instrument for TrackCompletionFuture<F, C, H>

impl<T> WithSubscriber for TrackCompletionFuture<F, C, H>

impl<T, U> Into<U> for TrackCompletionFuture<F, C, H> 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 TrackCompletionFuture<F, C, H> 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 TrackCompletionFuture<F, C, H> where U: TryFrom<T>,

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