[][src]Struct futures::sink::SendAll

#[must_use = "futures do nothing unless polled"]
pub struct SendAll<T, U: Stream> { /* fields omitted */ }

Future for the Sink::send_all combinator, which sends a stream of values to a sink and then waits until the sink has fully flushed those values.

Trait Implementations

impl<T, U> Future for SendAll<T, U> where
    T: Sink,
    U: Stream<Item = T::SinkItem>,
    T::SinkError: From<U::Error>, 
[src]

type Item = (T, U)

The type of value that this future will resolved with if it is successful. Read more

type Error = T::SinkError

The type of error that this future will resolve with if it fails in a normal fashion. Read more

impl<T: Debug, U: Debug + Stream> Debug for SendAll<T, U> where
    U::Item: Debug
[src]

Auto Trait Implementations

impl<T, U> Unpin for SendAll<T, U> where
    T: Unpin,
    U: Unpin,
    <U as Stream>::Item: Unpin

impl<T, U> Send for SendAll<T, U> where
    T: Send,
    U: Send,
    <U as Stream>::Item: Send

impl<T, U> Sync for SendAll<T, U> where
    T: Sync,
    U: Sync,
    <U as Stream>::Item: Sync

impl<T, U> UnwindSafe for SendAll<T, U> where
    T: UnwindSafe,
    U: UnwindSafe,
    <U as Stream>::Item: UnwindSafe

impl<T, U> RefUnwindSafe for SendAll<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe,
    <U as Stream>::Item: RefUnwindSafe

Blanket Implementations

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

type Future = F

The future that this type can be converted into.

type Item = <F as Future>::Item

The item that the future may resolve with.

type Error = <F as Future>::Error

The error that the future may resolve with.

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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