[][src]Trait tarpc_lib::transport::Transport

pub trait Transport where
    Self: Stream<Item = Result<Self::Item>>,
    Self: Sink<Self::SinkItem, SinkError = Error>, 
{ type Item; type SinkItem; fn peer_addr(&self) -> Result<SocketAddr>;
fn local_addr(&self) -> Result<SocketAddr>; }

A bidirectional stream (Sink + Stream) of messages.

Associated Types

type Item

The type read off the transport.

type SinkItem

The type written to the transport.

Loading content...

Required methods

fn peer_addr(&self) -> Result<SocketAddr>

The address of the remote peer this transport is in communication with.

fn local_addr(&self) -> Result<SocketAddr>

The address of the local half of this transport.

Loading content...

Implementors

impl<Item, SinkItem> Transport for UnboundedChannel<Item, SinkItem>[src]

type SinkItem = SinkItem

type Item = Item

Loading content...