pub struct Invocation {
pub monitor: Option<OsString>,
pub monitor_long: Option<OsString>,
pub background: bool,
pub version: bool,
pub help: bool,
pub man: bool,
pub dry_run: bool,
pub list: bool,
pub session: Option<String>,
pub config: Option<PathBuf>,
pub ssh_args: Vec<OsString>,
pub inject_at: usize,
}Expand description
What rash was asked to do, before any environment or config file is consulted.
Fields§
§monitor: Option<OsString>Raw -M spec, exactly as given. Validated later, by config.
monitor_long: Option<OsString>--monitor SPEC, which outranks both -M and the environment.
background: bool§version: bool§help: bool§man: bool--man: write the manual page to standard output and exit.
dry_run: bool§list: bool--list: print the config file’s session names and exit.
session: Option<String>--session NAME: take settings from [session.NAME] in the config file.
config: Option<PathBuf>--config PATH: use this config file rather than the default one.
ssh_args: Vec<OsString>Arguments for ssh, in order, with -M, -f and -V removed.
inject_at: usizeWhere the -L/-R monitor forwards belong: the position -M occupied,
or 0 when the port came from the environment instead (autossh parity,
autossh.c:420-427).
Trait Implementations§
Source§impl Debug for Invocation
impl Debug for Invocation
Source§impl Default for Invocation
impl Default for Invocation
Source§fn default() -> Invocation
fn default() -> Invocation
Returns the “default value” for a type. Read more
impl Eq for Invocation
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
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