Enum thrussh_keys::Error [−][src]
pub enum Error { 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
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0
[src]This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<ErrorStack> for Error
[src]
impl From<ErrorStack> for Error
fn from(e: ErrorStack) -> Self
[src]
fn from(e: ErrorStack) -> Self
Performs the conversion.
impl From<ASN1Error> for Error
[src]
impl From<ASN1Error> for Error
impl From<SpawnError> for Error
[src]
impl From<SpawnError> for Error
fn from(e: SpawnError) -> Self
[src]
fn from(e: SpawnError) -> Self
Performs the conversion.
impl From<DecodeError> for Error
[src]
impl From<DecodeError> for Error
fn from(e: DecodeError) -> Self
[src]
fn from(e: DecodeError) -> Self
Performs the conversion.
impl From<FromHexError> for Error
[src]
impl From<FromHexError> for Error
fn from(e: FromHexError) -> Self
[src]
fn from(e: FromHexError) -> Self
Performs the conversion.
impl Display for Error
[src]
impl Display for Error