pub enum CacheError {
InvalidMagic([u8; 4]),
UnsupportedVersion(u8),
DataCorrupted(String),
UnexpectedEof,
EventDataError(String),
ColumnCountMismatch {
expected: usize,
actual: usize,
},
}Expand description
Errors returned by cache encoding and decoding.
Variants§
InvalidMagic([u8; 4])
The file does not start with BNCH.
UnsupportedVersion(u8)
The format version is newer than this library supports.
DataCorrupted(String)
CRC-64 mismatch — data is corrupted or truncated.
UnexpectedEof
Unexpected end of data while reading a column or header.
EventDataError(String)
JSON serialisation / deserialisation of event data failed.
ColumnCountMismatch
Column count mismatch between header and data.
Trait Implementations§
Source§impl Clone for CacheError
impl Clone for CacheError
Source§fn clone(&self) -> CacheError
fn clone(&self) -> CacheError
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 CacheError
impl Debug for CacheError
Source§impl Display for CacheError
impl Display for CacheError
Source§impl Error for CacheError
impl Error for CacheError
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<CacheError> for CacheReaderError
impl From<CacheError> for CacheReaderError
Source§fn from(source: CacheError) -> Self
fn from(source: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CacheError
impl From<Error> for CacheError
Source§impl PartialEq for CacheError
impl PartialEq for CacheError
impl Eq for CacheError
impl StructuralPartialEq for CacheError
Auto Trait Implementations§
impl Freeze for CacheError
impl RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnsafeUnpin for CacheError
impl UnwindSafe for CacheError
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.