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§
source§impl AsMut<Destination> for &mut Destination
impl AsMut<Destination> for &mut Destination
source§fn as_mut(&mut self) -> &mut Destination
fn as_mut(&mut self) -> &mut Destination
source§impl AsRef<Destination> for &Destination
impl AsRef<Destination> for &Destination
source§fn as_ref(&self) -> &Destination
fn as_ref(&self) -> &Destination
source§impl Clone for Destination
impl Clone for Destination
source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Destination
impl Debug for Destination
source§impl<'de> Deserialize<'de> for Destination
impl<'de> Deserialize<'de> for Destination
source§fn 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>,
source§impl Display for Destination
impl Display for Destination
source§impl FromStr for Box<Destination>
impl FromStr for Box<Destination>
source§impl FromStr for Destination
impl FromStr for Destination
source§impl Hash for Destination
impl Hash for Destination
source§impl<'a> PartialEq<&'a str> for Destination
impl<'a> PartialEq<&'a str> for Destination
source§impl PartialEq<Destination> for Destination
impl PartialEq<Destination> for Destination
source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
self and other values to be equal, and is used
by ==.