pub struct SshConfig {
pub host: String,
pub port: u16,
pub username: String,
pub key_path: Option<PathBuf>,
pub options: HashMap<String, String>,
pub connect_timeout: u64,
pub command_timeout: u64,
}Expand description
SSH configuration
Fields§
§host: StringRemote hostname or IP
port: u16Remote port (default: 22)
username: StringUsername
key_path: Option<PathBuf>SSH key path
options: HashMap<String, String>SSH options
connect_timeout: u64Connection timeout in seconds
command_timeout: u64Command timeout in seconds
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SshConfig
impl RefUnwindSafe for SshConfig
impl Send for SshConfig
impl Sync for SshConfig
impl Unpin for SshConfig
impl UnwindSafe for SshConfig
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