#[non_exhaustive]
pub enum ServerCheckMethod {
NoCheck,
PublicKey(String),
PublicKeyFile(String),
DefaultKnownHostsFile,
KnownHostsFile(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl ServerCheckMethod
impl ServerCheckMethod
sourcepub fn with_public_key(key: &str) -> Self
pub fn with_public_key(key: &str) -> Self
Convenience method to create a ServerCheckMethod from a string literal.
pub fn with_public_key_file(key_file_name: &str) -> Self
pub fn with_known_hosts_file(known_hosts_file: &str) -> Self
Trait Implementations§
source§impl Clone for ServerCheckMethod
impl Clone for ServerCheckMethod
source§fn clone(&self) -> ServerCheckMethod
fn clone(&self) -> ServerCheckMethod
Returns a copy of the value. Read more
1.0.0 · 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 ServerCheckMethod
impl Debug for ServerCheckMethod
source§impl Hash for ServerCheckMethod
impl Hash for ServerCheckMethod
source§impl PartialEq<ServerCheckMethod> for ServerCheckMethod
impl PartialEq<ServerCheckMethod> for ServerCheckMethod
source§fn eq(&self, other: &ServerCheckMethod) -> bool
fn eq(&self, other: &ServerCheckMethod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.