Struct distant_core::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: 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
sourceimpl Destination
impl Destination
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
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<Destination> for &Destination
impl AsRef<Destination> for &Destination
sourcefn as_ref(&self) -> &Destination
fn as_ref(&self) -> &Destination
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for Destination
impl Clone for Destination
sourcefn clone(&self) -> Destination
fn clone(&self) -> Destination
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Destination
impl Debug for Destination
sourceimpl<'de> Deserialize<'de> for Destination
impl<'de> Deserialize<'de> for Destination
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 Display for Destination
impl Display for Destination
sourceimpl FromStr for Box<Destination>
impl FromStr for Box<Destination>
sourceimpl FromStr for Destination
impl FromStr for Destination
sourceimpl Hash for Destination
impl Hash for Destination
sourceimpl<'a> PartialEq<&'a str> for Destination
impl<'a> PartialEq<&'a str> for Destination
sourceimpl PartialEq<Destination> for Destination
impl PartialEq<Destination> for Destination
sourcefn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for Destination
impl Serialize for Destination
impl Eq for Destination
impl StructuralEq for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnwindSafe for Destination
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
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