#[repr(C)]pub enum ServerKnown {
NotKnown = 0,
Known = 1,
Changed = 2,
FoundOther = 3,
FileNotFound = 4,
}
Variants§
NotKnown = 0
The key is unknown
Known = 1
The key is known
Changed = 2
The key has changed since the last connection. You have to warn the user about a possible attack.
FoundOther = 3
The type of the key has changed. Possible attack.
FileNotFound = 4
The known hosts file doesn’t exist, and will be created when write_knownhost
is called.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerKnown
impl RefUnwindSafe for ServerKnown
impl Send for ServerKnown
impl Sync for ServerKnown
impl Unpin for ServerKnown
impl UnwindSafe for ServerKnown
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