pub enum SealedBlobError {
UnknownVersion(u8),
UnknownNoncePolicy(u8),
NoncePolicyMismatch {
stored: u8,
requested: u8,
},
ShortHeader(usize),
ZeroChunkSize,
ChunkLength {
index: u64,
expected: usize,
actual: usize,
},
ChunkAuthentication {
index: u64,
},
RangeOutOfBounds {
start: u64,
end: u64,
plaintext_len: u64,
},
}Expand description
Why a sealed blob’s header or one of its chunks could not be opened.
Variants§
UnknownVersion(u8)
UnknownNoncePolicy(u8)
NoncePolicyMismatch
ShortHeader(usize)
ZeroChunkSize
ChunkLength
ChunkAuthentication
RangeOutOfBounds
Trait Implementations§
Source§impl Clone for SealedBlobError
impl Clone for SealedBlobError
Source§fn clone(&self) -> SealedBlobError
fn clone(&self) -> SealedBlobError
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 SealedBlobError
impl Debug for SealedBlobError
Source§impl Display for SealedBlobError
impl Display for SealedBlobError
Source§impl Error for SealedBlobError
impl Error for SealedBlobError
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<SealedBlobError> for EncryptionError
impl From<SealedBlobError> for EncryptionError
Source§fn from(source: SealedBlobError) -> Self
fn from(source: SealedBlobError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SealedBlobError
impl PartialEq for SealedBlobError
impl Eq for SealedBlobError
impl StructuralPartialEq for SealedBlobError
Auto Trait Implementations§
impl Freeze for SealedBlobError
impl RefUnwindSafe for SealedBlobError
impl Send for SealedBlobError
impl Sync for SealedBlobError
impl Unpin for SealedBlobError
impl UnsafeUnpin for SealedBlobError
impl UnwindSafe for SealedBlobError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.