[][src]Struct capnp_futures::serialize::Transport

pub struct Transport<S, M> { /* fields omitted */ }

Methods

impl<S, M> Transport<S, M>[src]

pub fn new(stream: S, read_options: ReaderOptions) -> Self[src]

Trait Implementations

impl<S, M> Stream for Transport<S, M> where
    S: Read
[src]

type Item = Reader<OwnedSegments>

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

impl<S, M> Sink for Transport<S, M> where
    S: Write,
    M: AsOutputSegments
[src]

type SinkItem = M

The type of value that the sink accepts.

type SinkError = Error

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

Auto Trait Implementations

impl<S, M> Send for Transport<S, M> where
    M: Send,
    S: Send

impl<S, M> Sync for Transport<S, M> where
    M: Sync,
    S: Sync

impl<S, M> Unpin for Transport<S, M> where
    M: Unpin,
    S: Unpin

impl<S, M> UnwindSafe for Transport<S, M> where
    M: UnwindSafe,
    S: UnwindSafe

impl<S, M> RefUnwindSafe for Transport<S, M> where
    M: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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> 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]