Struct futures_util::compat::Compat01As03Sink[][src]

#[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

Implementations

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

pub fn new(inner: S) -> Self[src]

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

pub fn get_ref(&self) -> &S[src]

Get a reference to 0.1 Sink object contained within.

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: Debug, SinkItem: Debug> Debug for Compat01As03Sink<S, SinkItem>[src]

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

type Error = S::SinkError

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

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

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

Values yielded by the stream.

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

Auto Trait Implementations

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

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>

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, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[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.

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