pub enum KeyTagError {
Truncated,
Unmarked,
UnknownVersion(u8),
}Expand description
What a stored payload’s leading key tag can fail to be.
Variants§
Trait Implementations§
Source§impl Debug for KeyTagError
impl Debug for KeyTagError
Source§impl Display for KeyTagError
impl Display for KeyTagError
Source§impl Error for KeyTagError
impl Error for KeyTagError
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 From<KeyTagError> for EncryptionError
impl From<KeyTagError> for EncryptionError
Source§fn from(source: KeyTagError) -> Self
fn from(source: KeyTagError) -> Self
Converts to this type from the input type.
Source§impl From<KeyTagError> for SealError
A tag naming a version this build does not read is its own answer to the
host — “this payload is newer than me”, not “decryption failed”. Every other
malformed tag is a corrupt envelope, which reads as a decryption failure.
impl From<KeyTagError> for SealError
A tag naming a version this build does not read is its own answer to the host — “this payload is newer than me”, not “decryption failed”. Every other malformed tag is a corrupt envelope, which reads as a decryption failure.
Source§fn from(error: KeyTagError) -> Self
fn from(error: KeyTagError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyTagError
impl RefUnwindSafe for KeyTagError
impl Send for KeyTagError
impl Sync for KeyTagError
impl Unpin for KeyTagError
impl UnsafeUnpin for KeyTagError
impl UnwindSafe for KeyTagError
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