Trait fibers_transport::TcpTransport [−][src]
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.
Implementors
impl<T: TcpTransport> TcpTransport for RcTransporter<T>
impl<E: Encode, D: Decode> TcpTransport for TcpTransporter<E, D>