pub struct Config {
pub client_id: SshId,
pub limits: Limits,
pub window_size: u32,
pub maximum_packet_size: u32,
pub preferred: Preferred,
pub inactivity_timeout: Option<Duration>,
pub keepalive_interval: Option<Duration>,
pub keepalive_max: usize,
pub anonymous: bool,
}
Expand description
The configuration of clients.
Fields§
§client_id: SshId
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.
inactivity_timeout: Option<Duration>
Time after which the connection is garbage-collected.
keepalive_interval: Option<Duration>
If nothing is received from the server for this amount of time, send a keepalive message.
keepalive_max: usize
If this many keepalives have been sent without reply, close the connection.
anonymous: bool
Whether to expect and wait for an authentication call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more