Enum matrix_sdk_crypto::KeyExportError [−][src]
pub enum KeyExportError {
InvalidHeaders,
UnsupportedVersion,
InvalidMac,
InvalidUtf8(FromUtf8Error),
Json(SerdeError),
Decode(DecodeError),
Io(Error),
}Expand description
Error representing a failure during key export or import.
Variants
The key export doesn’t contain valid headers.
The key export has been encrypted with an unsupported version.
The MAC of the encrypted payload is invalid.
InvalidUtf8(FromUtf8Error)The decrypted key export isn’t valid UTF-8.
Json(SerdeError)The decrypted key export doesn’t contain valid JSON.
Decode(DecodeError)The key export string isn’t valid base64.
Io(Error)The key export doesn’t all the required fields.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for KeyExportErrorimpl Send for KeyExportErrorimpl Sync for KeyExportErrorimpl Unpin for KeyExportErrorimpl !UnwindSafe for KeyExportErrorBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self