Enum thrussh_keys::Error
source · pub enum Error {
Show 17 variants
IO(Error),
Utf8(Utf8Error),
OpenSSL(Error),
OpenSSLStack(ErrorStack),
Base64(DecodeError),
Hex(FromHexError),
Yasna(ASN1Error),
TokioSpawn(SpawnError),
Unit,
CouldNotReadKey,
UnsupportedKeyType(Vec<u8>),
KeyIsEncrypted,
NoHomeDir,
KeyChanged(usize),
UnknownAlgorithm(ObjectIdentifier),
Poison,
IndexOutOfBounds,
}
Variants§
IO(Error)
Utf8(Utf8Error)
OpenSSL(Error)
OpenSSLStack(ErrorStack)
Base64(DecodeError)
Hex(FromHexError)
Yasna(ASN1Error)
TokioSpawn(SpawnError)
Unit
Unknown error
CouldNotReadKey
The key could not be read, for an unknown reason
UnsupportedKeyType(Vec<u8>)
The type of the key is unsupported
KeyIsEncrypted
The key is encrypted (should supply a password?)
NoHomeDir
Home directory could not be found
KeyChanged(usize)
The server key has changed
UnknownAlgorithm(ObjectIdentifier)
The key uses an unsupported algorithm
Poison
Lock poisoning error
IndexOutOfBounds
Index out of bounds
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
source§fn from(e: ErrorStack) -> Self
fn from(e: ErrorStack) -> Self
Converts to this type from the input type.
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<SpawnError> for Error
impl From<SpawnError> for Error
source§fn from(e: SpawnError) -> Self
fn from(e: SpawnError) -> Self
Converts to this type from the input type.