Enum ssh::ServerKnown [] [src]

pub enum ServerKnown {
    NotKnown,
    Known,
    Changed,
    FoundOther,
    FileNotFound,
}

Variants

NotKnown

The key is unknown

Known

The key is known

Changed

The key has changed since the last connection. You have to warn the user about a possible attack.

FoundOther

The type of the key has changed. Possible attack.

FileNotFound

The known hosts file doesn't exist, and will be created when write_knownhost is called.

Methods

impl ServerKnown
[src]

fn is_known(&self) -> bool

Trait Implementations

impl Debug for ServerKnown
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.