pub struct SshOptions {
pub connect_timeout: Duration,
pub command_timeout: Duration,
pub server_alive_interval: Option<Duration>,
pub control_persist_idle: Option<Duration>,
pub control_master: bool,
pub known_hosts: KnownHostsPolicy,
}Expand description
SSH connection options.
Fields§
§connect_timeout: DurationConnection timeout.
command_timeout: DurationCommand execution timeout.
server_alive_interval: Option<Duration>Server keepalive interval (ssh -o ServerAliveInterval).
Defaults to None (OpenSSH default; keepalive disabled).
control_persist_idle: Option<Duration>How long the SSH ControlMaster should remain alive while idle.
None preserves the OpenSSH crate default (ControlPersist=yes).
Some(0s) sets ControlPersist=no (close after initial connection).
control_master: boolSSH control master mode for connection reuse.
known_hosts: KnownHostsPolicyKnown hosts policy.
Trait Implementations§
Source§impl Clone for SshOptions
impl Clone for SshOptions
Source§fn clone(&self) -> SshOptions
fn clone(&self) -> SshOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SshOptions
impl Debug for SshOptions
Auto Trait Implementations§
impl Freeze for SshOptions
impl RefUnwindSafe for SshOptions
impl Send for SshOptions
impl Sync for SshOptions
impl Unpin for SshOptions
impl UnsafeUnpin for SshOptions
impl UnwindSafe for SshOptions
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