Struct fibers_transport::FixedPeerTransporter[][src]

pub struct FixedPeerTransporter<T: Transport, P = <T as Transport>::PeerAddr> { /* fields omitted */ }

An implementation of Transport used for communicating with a fixed peer.

Methods

impl<T: Transport, P> FixedPeerTransporter<T, P>
[src]

Makes a new FixedPeerTransporter instance.

Important traits for &'a mut R

Returns a reference to the inner transporter.

Important traits for &'a mut R

Returns a mutable reference to the inner transporter.

Important traits for &'a mut R

Returns a reference to the fixed peer address exposed to users of the transporter.

Returns a reference to the fixed peer address used internally in the transporter.

Trait Implementations

impl<T: Debug + Transport, P: Debug> Debug for FixedPeerTransporter<T, P> where
    T::PeerAddr: Debug
[src]

Formats the value using the given formatter. Read more

impl<T: Transport, P: PeerAddr> Transport for FixedPeerTransporter<T, P>
[src]

Peer address.

Outgoing item.

Incoming item.

Starts sending the given item to the destination peer.

Polls the transmission of the all outstanding items in the transporter have been completed. Read more

Polls reception of an item from a peer. Read more

impl<T: UdpTransport> UdpTransport for FixedPeerTransporter<T, SocketAddr>
[src]

Returns the address to which the instance is bound.

impl<T: TcpTransport> From<T> for FixedPeerTransporter<T, SocketAddr>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T, P> Send for FixedPeerTransporter<T, P> where
    P: Send,
    T: Send,
    <T as Transport>::PeerAddr: Send

impl<T, P> Sync for FixedPeerTransporter<T, P> where
    P: Sync,
    T: Sync,
    <T as Transport>::PeerAddr: Sync