pub enum DecodeAttributesError {
Base64Decode(DecodeError),
Decrypt(UnpadError),
InvalidUtf8(Utf8Error),
MissingMegaPrefix,
Json(Error),
ParseFolderKey(FolderKeyParseError),
KeyMissingHeader,
InvalidKeyLength {
length: usize,
},
}
Expand description
An error that may occur while decoding attributes
Variants§
Base64Decode(DecodeError)
Failed to decode base64
Decrypt(UnpadError)
Decryption failed
InvalidUtf8(Utf8Error)
Invalid utf8
MissingMegaPrefix
Missing the MEGA prefix
Json(Error)
Json parse error
ParseFolderKey(FolderKeyParseError)
Failed to parse a folder key
KeyMissingHeader
A key was missing a header
InvalidKeyLength
The key was the wrong size
Trait Implementations§
Source§impl Debug for DecodeAttributesError
impl Debug for DecodeAttributesError
Source§impl Display for DecodeAttributesError
impl Display for DecodeAttributesError
Source§impl Error for DecodeAttributesError
impl Error for DecodeAttributesError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DecodeAttributesError> for Error
impl From<DecodeAttributesError> for Error
Source§fn from(source: DecodeAttributesError) -> Self
fn from(source: DecodeAttributesError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for DecodeAttributesError
impl From<DecodeError> for DecodeAttributesError
Source§impl From<Error> for DecodeAttributesError
impl From<Error> for DecodeAttributesError
Source§impl From<ParseError> for DecodeAttributesError
impl From<ParseError> for DecodeAttributesError
Source§fn from(source: FolderKeyParseError) -> Self
fn from(source: FolderKeyParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecodeAttributesError
impl !RefUnwindSafe for DecodeAttributesError
impl Send for DecodeAttributesError
impl Sync for DecodeAttributesError
impl Unpin for DecodeAttributesError
impl !UnwindSafe for DecodeAttributesError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more