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: Host
Consisting 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 more