[][src]Struct suspend_channel::NextFuture

pub struct NextFuture<'n, S: ?Sized>(_);

A Future which resolves to the next item of a Stream.

Trait Implementations

impl<'n, S: Debug + ?Sized> Debug for NextFuture<'n, S>[src]

impl<S> FusedFuture for NextFuture<'_, S> where
    S: Stream + FusedStream + Unpin
[src]

impl<S: Stream + Unpin + ?Sized> Future for NextFuture<'_, S>[src]

type Output = Option<S::Item>

The type of value produced on completion.

impl<S: Unpin + ?Sized> Unpin for NextFuture<'_, S>[src]

Auto Trait Implementations

impl<'n, S: ?Sized> RefUnwindSafe for NextFuture<'n, S> where
    S: RefUnwindSafe
[src]

impl<'n, S: ?Sized> Send for NextFuture<'n, S> where
    S: Send
[src]

impl<'n, S: ?Sized> Sync for NextFuture<'n, S> where
    S: Sync
[src]

impl<'n, S> !UnwindSafe for NextFuture<'n, S>[src]

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> From<T> for T[src]

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

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

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.