[][src]Trait fibers_transport::TcpTransport

pub trait TcpTransport: Transport<PeerAddr = ()> {
    fn peer_addr(&self) -> SocketAddr;
fn local_addr(&self) -> SocketAddr; }

This trait indicates that the implementation implements TCP.

Required methods

fn peer_addr(&self) -> SocketAddr

Returns the address of the connected peer.

fn local_addr(&self) -> SocketAddr

Returns the address to which the instance is bound.

Loading content...

Implementors

impl<E: Encode, D: Decode> TcpTransport for TcpTransporter<E, D>[src]

impl<T: TcpTransport> TcpTransport for RcTransporter<T>[src]

Loading content...