pub enum PrivateDocumentEnvelopeError {
PayloadTooLarge {
payload_len: usize,
capacity: usize,
},
InvalidEntryLength(usize),
InvalidEphemeralSeed,
DecryptionFailed,
Malformed(&'static str),
UnsupportedVersion(u8),
WrongRecipient,
AnonymousSender,
SenderNotAuthenticated,
RecipientSecretKeyRequired,
NotSigned,
}Expand description
Why an entry could not be built, opened, recovered or checked.
Variants§
PayloadTooLarge
InvalidEntryLength(usize)
InvalidEphemeralSeed
DecryptionFailed
Malformed(&'static str)
UnsupportedVersion(u8)
WrongRecipient
AnonymousSender
SenderNotAuthenticated
RecipientSecretKeyRequired
NotSigned
Trait Implementations§
Source§impl Clone for PrivateDocumentEnvelopeError
impl Clone for PrivateDocumentEnvelopeError
Source§impl Debug for PrivateDocumentEnvelopeError
impl Debug for PrivateDocumentEnvelopeError
impl Eq for PrivateDocumentEnvelopeError
Source§impl Error for PrivateDocumentEnvelopeError
impl Error for PrivateDocumentEnvelopeError
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()
impl StructuralPartialEq for PrivateDocumentEnvelopeError
Auto Trait Implementations§
impl Freeze for PrivateDocumentEnvelopeError
impl RefUnwindSafe for PrivateDocumentEnvelopeError
impl Send for PrivateDocumentEnvelopeError
impl Sync for PrivateDocumentEnvelopeError
impl Unpin for PrivateDocumentEnvelopeError
impl UnsafeUnpin for PrivateDocumentEnvelopeError
impl UnwindSafe for PrivateDocumentEnvelopeError
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