Struct futures::sink::SinkErrInto[][src]

#[must_use = "futures do nothing unless polled"]
pub struct SinkErrInto<Si, E> where
    Si: Sink
{ /* fields omitted */ }

A sink combinator to change the error type of a sink.

This is created by the Sink::err_into method.

Methods

impl<Si, E> SinkErrInto<Si, E> where
    Si: Sink,
    <Si as Sink>::SinkError: Into<E>, 
[src]

Important traits for &'a mut I

Get a shared reference to the inner sink.

Important traits for &'a mut I

Get a mutable reference to the inner sink.

Consumes this combinator, returning the underlying sink.

Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.

Trait Implementations

impl<Si, E> Sink for SinkErrInto<Si, E> where
    Si: Sink,
    <Si as Sink>::SinkError: Into<E>, 
[src]

The type of value that the sink accepts.

The type of value produced by the sink when an error occurs.

Attempts to prepare the Sink to receive a value. Read more

Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready which returned Ok(Poll::Ready(())). Read more

Flush any remaining output from this sink. Read more

Flush any remaining output and close this sink, if necessary. Read more

impl<Si, E> Debug for SinkErrInto<Si, E> where
    E: Debug,
    Si: Debug + Sink,
    <Si as Sink>::SinkError: Debug
[src]

Formats the value using the given formatter. Read more

impl<S, E> Stream for SinkErrInto<S, E> where
    S: Sink + Stream,
    <S as Sink>::SinkError: Into<E>, 
[src]

Values yielded by the stream.

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Auto Trait Implementations

impl<Si, E> Send for SinkErrInto<Si, E> where
    Si: Send

impl<Si, E> Sync for SinkErrInto<Si, E> where
    Si: Sync