Struct fibers_transport::UdpTransporterBuilder[][src]

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

UdpTransporter builder.

Methods

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

Makes a new UdpTransporterBuilder instance with the default settings.

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

Makes a new UdpTransporterBuilder instance with the given encoder and decoder.

Sets the size of the send and receive buffer of the resulting instance in byte.

The default value is 4096.

Makes a new UdpTransporter instance with the given settings.

Starts binding to the specified address and will makes a new UdpTransporter instance if the operation is succeeded.

Trait Implementations

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

Formats the value using the given formatter. Read more

impl<E: Clone, D: Clone> Clone for UdpTransporterBuilder<E, D>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E, D> Default for UdpTransporterBuilder<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 UdpTransporterBuilder<E, D> where
    D: Send,
    E: Send

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