Struct fibers_transport::TcpTransporterBuilder[][src]

pub struct TcpTransporterBuilder<E, D> { /* fields omitted */ }

TcpTransporter builder.

Methods

impl<E, D> TcpTransporterBuilder<E, D> where
    E: Encode + Default,
    D: Decode + Default
[src]

Makes a new TcpTransporterBuilder with the default settings.

impl<E: Encode, D: Decode> TcpTransporterBuilder<E, D>
[src]

Makes a new TcpTransporterBuilder with the given encoder and decoder.

Sets the application level read/write buffer size of the resulting instance in byte.

The default value is 8192.

Builds a TcpTransporterBuilder instance from the given TcpStream.

Builds a TcpTransporterBuilder instance by connecting to the specified peer.

Trait Implementations

impl<E: Debug, D: Debug> Debug for TcpTransporterBuilder<E, D>
[src]

Formats the value using the given formatter. Read more

impl<E, D> Default for TcpTransporterBuilder<E, D> where
    E: Encode + Default,
    D: Decode + Default
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<E, D> Send for TcpTransporterBuilder<E, D> where
    D: Send,
    E: Send

impl<E, D> Sync for TcpTransporterBuilder<E, D> where
    D: Sync,
    E: Sync