pub enum Verdict {
Known,
Unknown,
Mismatch {
expected_fingerprint: String,
got_fingerprint: String,
},
}Expand description
Result of verifying a server-offered host key against the local store.
Variants§
Known
Host is known and the key matches.
Unknown
Host has never been seen — safe to TOFU-trust.
Mismatch
Host is known but the key has changed — refuse the connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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