Enum thrussh_keys::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    IO(Error),
    Utf8(Utf8Error),
    OpenSSL(Error),
    OpenSSLStack(ErrorStack),
    Base64(DecodeError),
    Hex(FromHexError),
    Yasna(ASN1Error),
    Unit,
    CouldNotReadKey,
    KeyIsEncrypted,
    NoHomeDir,
    KeyChanged(usize),
    UnknownAlgorithm(ObjectIdentifier),
    Poison,
    IndexOutOfBounds,
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Unknown error

The key could not be read, for an unknown reason

The key is encrypted (should supply a password?)

Home directory could not be found

The server key has changed

The key uses an unsupported algorithm

Lock poisoning error

Index out of bounds

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl From<ErrorKind> for Error

Performs the conversion.

impl Debug for ErrorKind

Formats the value using the given formatter. Read more

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind