pub struct Config {Show 19 fields
pub ssh_path: PathBuf,
pub ssh_args: Vec<OsString>,
pub inject_at: usize,
pub monitor: Monitor,
pub monitor_host: IpAddr,
pub unix: Option<UnixPaths>,
pub poll: Duration,
pub first_poll: Duration,
pub net_timeout: Duration,
pub gate_time: Duration,
pub max_start: i64,
pub max_lifetime: Option<Duration>,
pub message: String,
pub pid_file: Option<PathBuf>,
pub touch_pid_file: bool,
pub background: bool,
pub kill_timeout: Duration,
pub log: Log,
pub dry_run: bool,
}Expand description
Everything rash needs in order to run, fully resolved.
Fields§
§ssh_path: PathBuf§ssh_args: Vec<OsString>ssh’s argv[1..] as the user wrote it, without the monitor forwards.
Use Config::ssh_argv to get what actually gets executed — the
forwards are built fresh on every start, because the UNIX arrangement
needs a different remote socket path each time.
inject_at: usizeWhere the forwards belong: the position -M occupied, or 0 when the
port came from the environment (autossh.c:420-427).
monitor: Monitor§monitor_host: IpAddr§unix: Option<UnixPaths>Socket paths, resolved only when the monitor is Monitor::Unix.
poll: Duration§first_poll: Duration§net_timeout: Duration§gate_time: Duration§max_start: i64Negative means no limit (MAX_START, autossh.c:97).
max_lifetime: Option<Duration>§message: String§pid_file: Option<PathBuf>§touch_pid_file: bool§background: bool§kill_timeout: Duration§log: Log§dry_run: boolImplementations§
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
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