pub struct ClientLaunchDistantConfig {
    pub bin: Option<String>,
    pub bind_server: Option<BindAddress>,
    pub args: Option<String>,
    pub no_shell: bool,
}

Fields

bin: Option<String>

Path to distant program on remote machine to execute via ssh; by default, this program needs to be available within PATH as specified when compiling ssh (not your login shell)

bind_server: Option<BindAddress>

Control the IP address that the server binds to.

The default is `ssh’, in which case the server will reply from the IP address that the SSH connection came from (as found in the SSH_CONNECTION environment variable). This is useful for multihomed servers.

With –bind-server=any, the server will reply on the default interface and will not bind to a particular IP address. This can be useful if the connection is made through sslh or another tool that makes the SSH connection appear to come from localhost.

With –bind-server=IP, the server will attempt to bind to the specified IP address.

args: Option<String>

Additional arguments to provide to the server

no_shell: bool

If specified, will not launch distant using a login shell but instead execute it directly

Trait Implementations

Append to Command so it can instantiate Self. Read more

Append to Command so it can update self. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

Assign values from ArgMatches to self.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more