pub enum Error {
Show 13 variants
EdocTooShort(usize),
HeaderParseErr(String),
InvalidVersion(u8),
NoIronCoreMagic,
SpecifiedLengthTooLong(u32),
ProtoSerializationErr(String),
HeaderLengthOverflow(u64),
EncryptError(String),
DecryptError(String),
EdekTypeError(String),
PayloadTypeError(String),
KeyIdHeaderTooShort(usize),
KeyIdHeaderMalformed(String),
}Variants§
EdocTooShort(usize)
EDOCs have a minimum size (at least the size of the pre-header)
HeaderParseErr(String)
Header could not be parsed as proto
InvalidVersion(u8)
EDOC version is not supported
NoIronCoreMagic
‘IRON’ as bytes
SpecifiedLengthTooLong(u32)
specified length of header is larger than the remaining data (proto header + payload)
ProtoSerializationErr(String)
Error occurred when serializing the header as proto
HeaderLengthOverflow(u64)
Serialized header is longer than allowed. Value is actual length in bytes.
EncryptError(String)
Encryption of the edoc failed.
DecryptError(String)
Decryption of the edoc failed.
EdekTypeError(String)
EdekType was not recognized
PayloadTypeError(String)
PayloadType was not recognized
KeyIdHeaderTooShort(usize)
key_id_header to short
KeyIdHeaderMalformed(String)
key_id_header malformed
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)>
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 Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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