pub enum BodyEnvelopeError {
InvalidMagic,
UnsupportedVersion(u8),
UnsupportedProfile(u8),
Truncated,
InvalidHeader(&'static str),
LimitExceeded(&'static str),
RecipientNotFound,
KeyUnwrapFailed,
DecryptFailed,
EncryptFailed,
Hkdf,
}Expand description
Envelope parser/sealer error type for application/foctet.
Variants§
InvalidMagic
Envelope magic bytes are invalid.
UnsupportedVersion(u8)
Body-envelope version is unsupported.
UnsupportedProfile(u8)
Body-envelope profile is unsupported.
Truncated
Input bytes are truncated.
InvalidHeader(&'static str)
Header bytes are malformed or inconsistent.
LimitExceeded(&'static str)
A configured parser or encoder limit was exceeded.
RecipientNotFound
No matching recipient entry could be used.
KeyUnwrapFailed
Content-key unwrap failed for a selected recipient entry.
DecryptFailed
Payload decryption failed.
EncryptFailed
Payload encryption failed.
Hkdf
HKDF expansion failed.
Trait Implementations§
Source§impl Clone for BodyEnvelopeError
impl Clone for BodyEnvelopeError
Source§fn clone(&self) -> BodyEnvelopeError
fn clone(&self) -> BodyEnvelopeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BodyEnvelopeError
impl Debug for BodyEnvelopeError
Source§impl Display for BodyEnvelopeError
impl Display for BodyEnvelopeError
Source§impl Error for BodyEnvelopeError
impl Error for BodyEnvelopeError
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 PartialEq for BodyEnvelopeError
impl PartialEq for BodyEnvelopeError
impl Eq for BodyEnvelopeError
impl StructuralPartialEq for BodyEnvelopeError
Auto Trait Implementations§
impl Freeze for BodyEnvelopeError
impl RefUnwindSafe for BodyEnvelopeError
impl Send for BodyEnvelopeError
impl Sync for BodyEnvelopeError
impl Unpin for BodyEnvelopeError
impl UnsafeUnpin for BodyEnvelopeError
impl UnwindSafe for BodyEnvelopeError
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