Skip to main content

ResolvedHost

Struct ResolvedHost 

Source
pub struct ResolvedHost {
Show 26 fields pub alias: String, pub host_name: Option<String>, pub user: Option<String>, pub port: Option<u16>, pub identity_files: Vec<String>, pub certificate_files: Vec<String>, pub proxy_jump: Option<String>, pub identity_agent: Option<String>, pub forward_agent: Option<String>, pub add_keys_to_agent: Option<String>, pub use_keychain: Option<String>, pub control_master: Option<String>, pub control_path: Option<String>, pub control_persist: Option<String>, pub local_forwards: Vec<String>, pub remote_forwards: Vec<String>, pub dynamic_forwards: Vec<String>, pub directives: Vec<(String, String)>, pub user_known_hosts_file: Option<String>, pub identities_only: Option<bool>, pub canonicalized: bool, pub unevaluated_match_warnings: Vec<String>, pub gssapi_authentication: Option<String>, pub gssapi_delegate_credentials: Option<String>, pub gssapi_server_identity: Option<String>, pub gssapi_client_identity: Option<String>,
}
Expand description

Fully resolved parameters for a host.

Fields§

§alias: String

The alias used to look up the host.

§host_name: Option<String>

The real hostname to connect to.

§user: Option<String>

The user for the SSH connection.

§port: Option<u16>

The port number.

§identity_files: Vec<String>

Identity files to try.

§certificate_files: Vec<String>

Certificate files (accumulative across matching blocks).

§proxy_jump: Option<String>

ProxyJump hosts.

§identity_agent: Option<String>

IdentityAgent socket path.

§forward_agent: Option<String>

ForwardAgent setting (yes/no).

§add_keys_to_agent: Option<String>

AddKeysToAgent setting (yes/confirm/ask/no/lifetime).

§use_keychain: Option<String>

UseKeychain setting (yes/no, macOS only).

§control_master: Option<String>

ControlMaster setting (yes/no/auto/ask/autoask).

§control_path: Option<String>

ControlPath socket path.

§control_persist: Option<String>

ControlPersist duration.

§local_forwards: Vec<String>

LocalForward entries (accumulative).

§remote_forwards: Vec<String>

RemoteForward entries (accumulative).

§dynamic_forwards: Vec<String>

DynamicForward entries (accumulative).

§directives: Vec<(String, String)>

All raw key-value directives from matching blocks.

§user_known_hosts_file: Option<String>

UserKnownHostsFile value, if set.

When None, the default ~/.ssh/known_hosts is used. May contain SSH tokens (already expanded).

§identities_only: Option<bool>

IdentitiesOnly setting parsed as a boolean (yes / no).

When Some(true), only the identity files explicitly listed in the config (and those on the command line) are offered during authentication. When Some(false) or None, keys from the agent and default key files are also tried.

§canonicalized: bool

Whether the config was re-resolved after CanonicalizeHostname took effect. When true, %H tokens expand to the canonical hostname rather than the original alias.

§unevaluated_match_warnings: Vec<String>

Warnings for Match blocks containing exec criteria that were not evaluated (toride does not execute arbitrary commands for security).

§gssapi_authentication: Option<String>

GSSAPIAuthentication setting (yes/no).

§gssapi_delegate_credentials: Option<String>

GSSAPIDelegateCredentials setting (yes/no).

§gssapi_server_identity: Option<String>

GSSAPIServerIdentity value.

§gssapi_client_identity: Option<String>

GSSAPIClientIdentity value.

Trait Implementations§

Source§

impl Clone for ResolvedHost

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResolvedHost

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ResolvedHost

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ResolvedHost

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more