pub struct SendSshArgs {Show 13 fields
pub sources: Vec<String>,
pub destination: String,
pub tcp_port: Option<u16>,
pub mdns_resolve_timeout_ms: u64,
pub ssh_timeout_ms: u64,
pub ip_version: IpVersion,
pub ssh_port: u16,
pub compression: Option<Compression>,
pub ssh_private_key_path: Option<PathBuf>,
pub ssh_key_dir: Option<PathBuf>,
pub start_port: u16,
pub end_port: u16,
pub mmap: bool,
}
Fields§
§sources: Vec<String>
Source files or directories
destination: String
Destination file or directory
tcp_port: Option<u16>
Port that will be used to do the transfer via TCP. Prefer leaving this value empty. If no port is specified, the remote will attempt to find a free port. Don’t use this unless you have very specific needs.
mdns_resolve_timeout_ms: u64
Maximum time (ms) to attempt to resolve IP of mDNS hostname
ssh_timeout_ms: u64
Maximum time (ms) to attempt to establish an SSH connection
ip_version: IpVersion
Preferred IP version (attempts to fall back to another variant if the preferred version is not found)
ssh_port: u16
Port for SSH
compression: Option<Compression>
Compression format
ssh_private_key_path: Option<PathBuf>
Path to the SSH private key to use for authorization (default: looks for a key in ~/.ssh)
ssh_key_dir: Option<PathBuf>
Provide a path to a directory containing SSH key(s) to use for auth. Default: $HOME/.ssh on Unix and $APP_DATA/.ssh on windows
start_port: u16
Start of the port range to look for free ports for TCP transfer. IANA recommends: 49152-65535 for dynamic use.
end_port: u16
end of the port range to look for free ports for TCP transfer
mmap: bool
Use memory mapping mode
Implementations§
Source§impl SendSshArgs
impl SendSshArgs
Sourcepub fn is_sending(&self) -> bool
pub fn is_sending(&self) -> bool
Returns whether the configuration is to send data to a remote
Trait Implementations§
Source§impl Args for SendSshArgs
impl Args for SendSshArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Debug for SendSshArgs
impl Debug for SendSshArgs
Source§impl FromArgMatches for SendSshArgs
impl FromArgMatches for SendSshArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn 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>
Source§fn 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>
ArgMatches
to self
.Source§fn 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>
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for SendSshArgs
impl RefUnwindSafe for SendSshArgs
impl Send for SendSshArgs
impl Sync for SendSshArgs
impl Unpin for SendSshArgs
impl UnwindSafe for SendSshArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more