pub struct Config {Show 18 fields
pub host: String,
pub port: u16,
pub user: String,
pub password: Option<String>,
pub key: Option<PathBuf>,
pub su_password: Option<String>,
pub sudo_password: Option<String>,
pub timeout_ms: u64,
pub max_chars: Option<usize>,
pub max_output_tokens: Option<usize>,
pub disable_sudo: bool,
pub keepalive_interval: u64,
pub keepalive_max: u64,
pub reconnect_retries: u64,
pub reconnect_backoff_ms: u64,
pub health_probe_timeout_ms: u64,
pub strict_host_key_checking: HostKeyCheckMode,
pub known_hosts: Option<PathBuf>,
}Expand description
Parsed and validated configuration
Fields§
§host: StringSSH host
port: u16SSH port
user: StringSSH username
password: Option<String>SSH password
key: Option<PathBuf>Path to SSH private key
su_password: Option<String>Password for su elevation
sudo_password: Option<String>Password for sudo commands
timeout_ms: u64Command timeout in milliseconds
max_chars: Option<usize>Maximum command length (None = unlimited)
max_output_tokens: Option<usize>Maximum output tokens for command execution (None = unlimited)
disable_sudo: boolWhether sudo_shell and sudo_apply_patch tools are disabled
keepalive_interval: u64Keepalive interval in seconds
keepalive_max: u64Maximum keepalive failures before disconnecting
reconnect_retries: u64Number of reconnect retries after the initial attempt
reconnect_backoff_ms: u64Base reconnect backoff in milliseconds
health_probe_timeout_ms: u64Health probe timeout in milliseconds for active session checks
strict_host_key_checking: HostKeyCheckModeSSH host key checking mode
known_hosts: Option<PathBuf>Optional known_hosts file path
Implementations§
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 UnsafeUnpin 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