pub struct Options {
    pub command: Option<OsString>,
    pub disallow_shell: bool,
    pub kind: Option<ProgramKind>,
}
Available on crate feature blocking-client only.
Expand description

The options for use when connecting via the ssh protocol.

Fields§

§command: Option<OsString>

The program or script to use. If unset, it defaults to ssh or ssh.exe, or the program implied by kind if that one is set.

§disallow_shell: bool

If true, a shell must not be used to execute command. This defaults to false, and a shell can then be used if command seems to require it, but won’t be used unnecessarily.

§kind: Option<ProgramKind>

The ssh variant further identifying program. This determines which arguments will be used when invoking the program. If unset, the program basename determines the variant, or an invocation of the command itself.

Implementations§

Return the configured ssh command, defaulting to ssh if neither the command nor the kind fields are set.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.