Struct completion::MustComplete[][src]

pub struct MustComplete<T> { /* fields omitted */ }

Make sure that a future or stream will complete, created by CompletionFutureExt::must_complete and CompletionStreamExt::must_complete.

This wraps a CompletionFuture or CompletionStream and will ignore all requests to cancel it, enforcing that it will complete.

Implementations

impl<T> MustComplete<T>[src]

pub unsafe fn into_inner(self) -> T[src]

Take the inner item.

Safety

This value must not be cancelled with CompletionFuture::poll_cancel or CompletionStream::poll_cancel.

Trait Implementations

impl<T: Clone> Clone for MustComplete<T>[src]

impl<T: CompletionFuture> CompletionFuture for MustComplete<T>[src]

type Output = T::Output

The type of value produced on completion.

impl<T: CompletionStream> CompletionStream for MustComplete<T>[src]

type Item = T::Item

Values yielded by the stream.

impl<T: Debug> Debug for MustComplete<T>[src]

impl<'__pin, T> Unpin for MustComplete<T> where
    __Origin<'__pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for MustComplete<T> where
    T: RefUnwindSafe

impl<T> Send for MustComplete<T> where
    T: Send

impl<T> Sync for MustComplete<T> where
    T: Sync

impl<T> UnwindSafe for MustComplete<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CompletionFutureExt for T where
    T: CompletionFuture + ?Sized
[src]

impl<T> CompletionStreamExt for T where
    T: CompletionStream + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.