Struct tiny_rpc::io::Transport[][src]

pub struct Transport { /* fields omitted */ }

Implementations

impl Transport[src]

pub fn from_streamed<T>(io: T) -> Self where
    T: AsyncRead + AsyncWrite + Send + Sync + 'static, 
[src]

pub fn from_streamed_pair<R, W>(reader: R, writer: W) -> Self where
    R: AsyncRead + Send + Sync + 'static,
    W: AsyncWrite + Send + Sync + 'static, 
[src]

pub fn from_framed<T>(io: T) -> Self where
    T: Stream<Item = Result<RpcFrame>> + Sink<RpcFrame, Error = Error> + Send + Sync + 'static, 
[src]

pub fn from_framed_pair<T, U>(stream: T, sink: U) -> Self where
    T: Stream<Item = Result<RpcFrame>> + Send + Sync + 'static,
    U: Sink<RpcFrame, Error = Error> + Send + Sync + 'static, 
[src]

pub fn new_local() -> (Self, Self)[src]

pub fn split(
    self
) -> (GenericStream<Result<RpcFrame>>, GenericSink<RpcFrame, Error>)
[src]

Auto Trait Implementations

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> Instrument 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.