Struct distant_ssh2::IntoDistantSessionOpts[][src]

pub struct IntoDistantSessionOpts {
    pub binary: String,
    pub args: String,
    pub use_login_shell: bool,
    pub timeout: Duration,
}
Expand description

Represents options to be provided when converting an ssh session into a distant session

Fields

binary: String

Binary to use for distant server

args: String

Arguments to supply to the distant server when starting it

use_login_shell: bool

If true, launches via echo distant listen ... | $SHELL -l, otherwise attempts to launch by directly invoking distant

timeout: Duration

Timeout to use when connecting to the distant server

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

Applies the Compat adapter by value. Read more

Applies the Compat adapter by shared reference. Read more

Applies the Compat adapter by mutable reference. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.