pub struct OpenSshConnectPlan { /* private fields */ }Expand description
Inspectable strict OpenSSH connection plan derived from one host record.
Implementations§
Source§impl OpenSshConnectPlan
impl OpenSshConnectPlan
Sourcepub fn revision(&self) -> &TopologyRevision
pub fn revision(&self) -> &TopologyRevision
Returns the topology revision bound to this plan.
Sourcepub fn destination(&self) -> &str
pub fn destination(&self) -> &str
Returns the SSH hostname or configuration alias.
Sourcepub fn identity_file(&self) -> Option<&Path>
pub fn identity_file(&self) -> Option<&Path>
Returns the optional identity-file path.
Sourcepub fn config_file(&self) -> Option<&Path>
pub fn config_file(&self) -> Option<&Path>
Returns the optional SSH config path.
Sourcepub fn known_hosts_file(&self) -> Option<&Path>
pub fn known_hosts_file(&self) -> Option<&Path>
Returns the optional explicit known-hosts path.
Sourcepub const fn connect_timeout(&self) -> Duration
pub const fn connect_timeout(&self) -> Duration
Returns the outer connection timeout.
Sourcepub const fn server_alive_interval(&self) -> Duration
pub const fn server_alive_interval(&self) -> Duration
Returns the server-alive interval.
Sourcepub const fn strict_known_hosts(&self) -> bool
pub const fn strict_known_hosts(&self) -> bool
Returns whether strict host-key verification is mandatory.
Trait Implementations§
Source§impl Clone for OpenSshConnectPlan
impl Clone for OpenSshConnectPlan
Source§fn clone(&self) -> OpenSshConnectPlan
fn clone(&self) -> OpenSshConnectPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenSshConnectPlan
impl Debug for OpenSshConnectPlan
Source§impl PartialEq for OpenSshConnectPlan
impl PartialEq for OpenSshConnectPlan
Source§fn eq(&self, other: &OpenSshConnectPlan) -> bool
fn eq(&self, other: &OpenSshConnectPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OpenSshConnectPlan
impl StructuralPartialEq for OpenSshConnectPlan
Auto Trait Implementations§
impl Freeze for OpenSshConnectPlan
impl RefUnwindSafe for OpenSshConnectPlan
impl Send for OpenSshConnectPlan
impl Sync for OpenSshConnectPlan
impl Unpin for OpenSshConnectPlan
impl UnsafeUnpin for OpenSshConnectPlan
impl UnwindSafe for OpenSshConnectPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.