Struct thrussh::client::Config[][src]

pub struct Config {
    pub client_id: String,
    pub limits: Limits,
    pub window_size: u32,
    pub maximum_packet_size: u32,
    pub preferred: Preferred,
    pub connection_timeout: Option<Duration>,
}
Expand description

The configuration of clients.

Fields

client_id: String

The client ID string sent at the beginning of the protocol.

limits: Limits

The bytes and time limits before key re-exchange.

window_size: u32

The initial size of a channel (used for flow control).

maximum_packet_size: u32

The maximal size of a single packet.

preferred: Preferred

Lists of preferred algorithms.

connection_timeout: Option<Duration>

Time after which the connection is garbage-collected.

Trait Implementations

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.