Struct distant::config::ClientLaunchDistantConfig
source · [−]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
sourceimpl Args for ClientLaunchDistantConfig
impl Args for ClientLaunchDistantConfig
sourceimpl Debug for ClientLaunchDistantConfig
impl Debug for ClientLaunchDistantConfig
sourceimpl Default for ClientLaunchDistantConfig
impl Default for ClientLaunchDistantConfig
sourcefn default() -> ClientLaunchDistantConfig
fn default() -> ClientLaunchDistantConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ClientLaunchDistantConfig
impl<'de> Deserialize<'de> for ClientLaunchDistantConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromArgMatches for ClientLaunchDistantConfig
impl FromArgMatches for ClientLaunchDistantConfig
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourcefn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourceimpl Serialize for ClientLaunchDistantConfig
impl Serialize for ClientLaunchDistantConfig
Auto Trait Implementations
impl RefUnwindSafe for ClientLaunchDistantConfig
impl Send for ClientLaunchDistantConfig
impl Sync for ClientLaunchDistantConfig
impl Unpin for ClientLaunchDistantConfig
impl UnwindSafe for ClientLaunchDistantConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CompatExt for T
impl<T> CompatExt for T
fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Applies the [Compat
] adapter by shared reference. Read more
fn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [Compat
] adapter by mutable reference. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more