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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.