pub enum SframeError {
MissingEncryptionKey,
MissingDecryptionKey(KeyId),
DecryptionFailure,
EncryptionFailure,
KeyDerivationFailure,
RatchetingFailure,
FrameValidationFailed(String),
InvalidBuffer(usize),
Other(String),
}Expand description
Represents an error which has occured in the sframe-rs library
Variants§
MissingEncryptionKey
no valid encryption key has been found
MissingDecryptionKey(KeyId)
no valid decryption key has been found
DecryptionFailure
Failed to decrypt a frame with AEAD
EncryptionFailure
Failed to encrypt a frame with AEAD
KeyDerivationFailure
Could not expand encryption/decryption key with HKDF
RatchetingFailure
Could not ratchet an decryption key with HKDF
FrameValidationFailed(String)
frame validation failed before decryption
InvalidBuffer(usize)
buffer was too small to deserialize into/ serialize from
Other(String)
any arbitrary error
Trait Implementations§
Source§impl Debug for SframeError
impl Debug for SframeError
Source§impl Display for SframeError
impl Display for SframeError
Source§impl Error for SframeError
impl Error for SframeError
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 SframeError
impl PartialEq for SframeError
impl Eq for SframeError
impl StructuralPartialEq for SframeError
Auto Trait Implementations§
impl Freeze for SframeError
impl RefUnwindSafe for SframeError
impl Send for SframeError
impl Sync for SframeError
impl Unpin for SframeError
impl UnwindSafe for SframeError
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