Struct fibers_transport::RcTransporter[][src]

pub struct RcTransporter<T: Transport>(_);

Shareable transporter.

Methods

impl<T: Transport> RcTransporter<T>
[src]

Makes a new RcTransporter instance.

Executes the given function with a reference to the inner transporter.

Executes the given function with a mutable reference to the inner transporter.

Executes the given function with the next incoming item if it is available.

If there is no such item, this will return Ok(None) without executing f.

Trait Implementations

impl<T: Debug + Transport> Debug for RcTransporter<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Transport> Clone for RcTransporter<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Transport> Transport for RcTransporter<T>
[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: TcpTransport> TcpTransport for RcTransporter<T>
[src]

Returns the address of the connected peer.

Returns the address to which the instance is bound.

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

Returns the address to which the instance is bound.

Auto Trait Implementations

impl<T> !Send for RcTransporter<T>

impl<T> !Sync for RcTransporter<T>