pub enum StrictHostKeyChecking {
Yes,
No,
AcceptNew,
}Expand description
StrictHostKeyChecking directive value.
ask — OpenSSH’s default that prompts the user — is folded into
StrictHostKeyChecking::Yes because Anvil never prompts; the
strict-no-unknown semantics are equivalent for our purposes.
Variants§
Yes
yes (or ask): refuse unknown hosts; refuse mismatches.
No
no (or off): accept any host key. Insecure; primarily useful
for ephemeral test infrastructure.
AcceptNew
accept-new: accept new host keys (writing to known_hosts)
but refuse mismatches against already-known keys. M12.5 wires
the minimal write path; full TOFU UX is post-M12 polish.
Trait Implementations§
Source§impl Clone for StrictHostKeyChecking
impl Clone for StrictHostKeyChecking
Source§fn clone(&self) -> StrictHostKeyChecking
fn clone(&self) -> StrictHostKeyChecking
Returns a duplicate 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 StrictHostKeyChecking
impl Debug for StrictHostKeyChecking
Source§impl PartialEq for StrictHostKeyChecking
impl PartialEq for StrictHostKeyChecking
impl Copy for StrictHostKeyChecking
impl Eq for StrictHostKeyChecking
impl StructuralPartialEq for StrictHostKeyChecking
Auto Trait Implementations§
impl Freeze for StrictHostKeyChecking
impl RefUnwindSafe for StrictHostKeyChecking
impl Send for StrictHostKeyChecking
impl Sync for StrictHostKeyChecking
impl Unpin for StrictHostKeyChecking
impl UnsafeUnpin for StrictHostKeyChecking
impl UnwindSafe for StrictHostKeyChecking
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