pub enum Decision {
Reject,
AcceptOnce,
AcceptAndStore,
}Expand description
Caller decision for a host-key mismatch.
Variants§
Reject
Close the connection. The default if no callback is set.
AcceptOnce
Proceed for this session, do not update the store.
AcceptAndStore
Proceed and overwrite the stored fingerprint.
Trait Implementations§
impl Copy for Decision
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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