Skip to main content

Module error

Module error 

Source
Expand description

Error types for anvil-ssh.

§Examples

use anvil_ssh::AnvilError;

fn handle(err: &AnvilError) {
    if err.is_host_key_mismatch() {
        eprintln!("Possible MITM — host key does not match pinned fingerprints.");
    }
}

Structs§

AnvilError
The single error type returned by all anvil-ssh operations.