Struct trillium_tokio::ClientConfig[][src]

pub struct ClientConfig {
    pub nodelay: Option<bool>,
    pub ttl: Option<u32>,
    pub linger: Option<Duration>,
}
Expand description

configuration for the tcp Connector

Fields

nodelay: Option<bool>

disable nagle’s algorithm see TcpStream::set_nodelay for more info

ttl: Option<u32>

time to live for the tcp protocol. set TcpStream::set_ttl for more info

linger: Option<Duration>

sets SO_LINGER. I don’t really understand this, but see TcpStream::set_linger for more info

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Applies the Compat adapter by value. Read more

Applies the Compat adapter by shared reference. Read more

Applies the Compat adapter by mutable reference. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.