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.
Tuple Fields of InvalidUtf8
Json(SerdeError)The decrypted key export doesn’t contain valid JSON.
Tuple Fields of Json
0: SerdeErrorDecode(DecodeError)The key export string isn’t valid base64.
Tuple Fields of Decode
0: DecodeErrorIo(Error)The key export doesn’t all the required fields.
Tuple Fields of Io
0: ErrorTrait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.