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§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)