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) -> SelfWraps 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