pub enum DntError {
InvalidFormat,
UnsupportedVersion,
PayloadTooLarge,
InvalidFlags,
ContextMismatch,
KeyUnavailable,
AuthenticationFailed,
CodecUnavailable,
CodecFailed,
Io,
}Expand description
Controlled DNT failures.
Variants§
InvalidFormat
The bytes do not contain a structurally valid DNT envelope.
UnsupportedVersion
The envelope version is newer or otherwise unsupported.
PayloadTooLarge
The configured maximum payload size would be exceeded.
InvalidFlags
The envelope contains an impossible or unsupported flag combination.
ContextMismatch
The envelope is not bound to the expected context.
The key provider could not return usable material.
AuthenticationFailed
AEAD authentication failed.
The codec identifier is unknown or incompatible.
CodecFailed
Encoding or decoding failed without exposing payload material.
Io
Filesystem persistence failed.
Trait Implementations§
impl Eq for DntError
Source§impl Error for DntError
impl Error for DntError
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<CodecError> for DntError
impl From<CodecError> for DntError
Source§fn from(_: CodecError) -> Self
fn from(_: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<DntKeyError> for DntError
impl From<DntKeyError> for DntError
Source§fn from(value: DntKeyError) -> Self
fn from(value: DntKeyError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DntError
Auto Trait Implementations§
impl Freeze for DntError
impl RefUnwindSafe for DntError
impl Send for DntError
impl Sync for DntError
impl Unpin for DntError
impl UnsafeUnpin for DntError
impl UnwindSafe for DntError
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