#[non_exhaustive]pub enum BlockStreamError {
BlockHashMismatch {
block_index: u64,
},
Eof,
}Expand description
Errors reading from the HMAC block stream
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BlockHashMismatch
The HMAC of a block did not match the expected value, indicating that the data may be corrupted or tampered with.
Eof
The end of the file was reached unexpectedly while reading a block, indicating that the data may be incomplete or corrupted.
Trait Implementations§
Source§impl Debug for BlockStreamError
impl Debug for BlockStreamError
Source§impl Display for BlockStreamError
impl Display for BlockStreamError
Source§impl Error for BlockStreamError
impl Error for BlockStreamError
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<BlockStreamError> for Kdbx4OpenError
impl From<BlockStreamError> for Kdbx4OpenError
Source§fn from(source: BlockStreamError) -> Self
fn from(source: BlockStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockStreamError
impl RefUnwindSafe for BlockStreamError
impl Send for BlockStreamError
impl Sync for BlockStreamError
impl Unpin for BlockStreamError
impl UnsafeUnpin for BlockStreamError
impl UnwindSafe for BlockStreamError
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