Struct async_transmit::FromSink[][src]

pub struct FromSink<S, I, E> { /* fields omitted */ }

Implementations

impl<S, I, E> FromSink<S, I, E>[src]

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

Consumes this transmit, returning the underlying sink.

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

Acquires a reference to the underlying sink that this transmit is pulling from.

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

Acquires a mutable reference to the underlying sink that this transmit is pulling from.

Trait Implementations

impl<S, I> From<S> for FromSink<S, I, S::Error> where
    S: Sink<I>, 
[src]

impl<S, I> Transmit for FromSink<S, I, S::Error> where
    I: Send,
    S: Sink<I> + Unpin + Send,
    S::Error: Send
[src]

type Item = I

type Error = S::Error

Auto Trait Implementations

impl<S, I, E> RefUnwindSafe for FromSink<S, I, E> where
    E: RefUnwindSafe,
    I: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, I, E> Send for FromSink<S, I, E> where
    E: Send,
    I: Send,
    S: Send

impl<S, I, E> Sync for FromSink<S, I, E> where
    E: Sync,
    I: Sync,
    S: Sync

impl<S, I, E> Unpin for FromSink<S, I, E> where
    E: Unpin,
    I: Unpin,
    S: Unpin

impl<S, I, E> UnwindSafe for FromSink<S, I, E> where
    E: UnwindSafe,
    I: UnwindSafe,
    S: UnwindSafe

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.