Struct distant_net::common::Destination
source · pub struct Destination {
pub scheme: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub host: Host,
pub port: Option<u16>,
}Expand description
distant connects and logs into the specified destination, which may be specified as either
hostname:port where an attempt to connect to a distant server will be made, or a URI of
one of the following forms:
distant://hostname:port- connect to a distant serverssh://[user@]hostname[:port]- connect to an SSH server
Note: Due to the limitations of a URI, an IPv6 address is not supported.
Fields
scheme: Option<String>Sequence of characters beginning with a letter and followed by any combination of letters, digits, plus (+), period (.), or hyphen (-) representing a scheme associated with a destination
username: Option<String>Sequence of alphanumeric characters representing a username tied to a destination
password: Option<String>Sequence of alphanumeric characters representing a password tied to a destination
host: HostConsisting of either a registered name (including but not limited to a hostname) or an IP address. IPv4 addresses must be in dot-decimal notation, and IPv6 addresses must be enclosed in brackets ([])
port: Option<u16>Port tied to a destination
Implementations
Trait Implementations
sourceimpl AsMut<Destination> for &mut Destination
impl AsMut<Destination> for &mut Destination
sourcefn as_mut(&mut self) -> &mut Destination
fn as_mut(&mut self) -> &mut Destination
sourceimpl AsRef<Destination> for &Destination
impl AsRef<Destination> for &Destination
sourcefn as_ref(&self) -> &Destination
fn as_ref(&self) -> &Destination
sourceimpl Clone for Destination
impl Clone for Destination
sourcefn clone(&self) -> Destination
fn clone(&self) -> Destination
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more