[][src]Struct futures_option::Next

pub struct Next<'a, T> { /* fields omitted */ }

Adapter future for Option to get the next value of the stored future.

Resolves to None if no future is present.

Trait Implementations

impl<'a, T: Debug> Debug for Next<'a, T>[src]

impl<'a, T> FusedFuture for Next<'a, T> where
    T: Unpin + Stream
[src]

impl<'a, T> Future for Next<'a, T> where
    T: Stream + Unpin
[src]

type Output = Option<T::Item>

The type of value produced on completion.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Next<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for Next<'a, T> where
    T: Send

impl<'a, T> Sync for Next<'a, T> where
    T: Sync

impl<'a, T> Unpin for Next<'a, T>

impl<'a, T> !UnwindSafe for Next<'a, T>

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<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.