[][src]Struct futures::compat::Compat01As03Sink

#[must_use = "sinks do nothing unless polled"]
pub struct Compat01As03Sink<S, SinkItem> { /* fields omitted */ }

Converts a futures 0.1 Sink object to a futures 0.3-compatible version

Methods

impl<S, SinkItem> Compat01As03Sink<S, SinkItem>[src]

pub fn new(inner: S) -> Compat01As03Sink<S, SinkItem>[src]

Wraps a futures 0.1 Sink object in a futures 0.3-compatible wrapper.

Important traits for &'_ mut F
pub fn get_ref(&self) -> &S[src]

Get a reference to 0.1 Sink object contained within.

Important traits for &'_ mut F
pub fn get_mut(&mut self) -> &mut S[src]

Get a mutable reference to 0.1 Sink contained within.

pub fn into_inner(self) -> S[src]

Consume this wrapper to return the underlying 0.1 Sink.

Trait Implementations

impl<S, SinkItem> Unpin for Compat01As03Sink<S, SinkItem>[src]

impl<S, SinkItem> Sink<SinkItem> for Compat01As03Sink<S, SinkItem> where
    S: Sink<SinkItem = SinkItem>, 
[src]

type Error = <S as Sink>::SinkError

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

impl<S, SinkItem> Debug for Compat01As03Sink<S, SinkItem> where
    S: Debug,
    SinkItem: Debug
[src]

impl<S, SinkItem> Stream for Compat01As03Sink<S, SinkItem> where
    S: Stream
[src]

type Item = Result<<S as Stream>::Item, <S as Stream>::Error>

Values yielded by the stream.

Auto Trait Implementations

impl<S, SinkItem> Send for Compat01As03Sink<S, SinkItem> where
    S: Send,
    SinkItem: Send

impl<S, SinkItem> !Sync for Compat01As03Sink<S, SinkItem>

impl<S, SinkItem> !UnwindSafe for Compat01As03Sink<S, SinkItem>

impl<S, SinkItem> !RefUnwindSafe for Compat01As03Sink<S, SinkItem>

Blanket Implementations

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 = !

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.

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]

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]