pub enum AhuError {
Show 20 variants
BadMagic {
found: [u8; 4],
},
UnsupportedVersion {
major: u16,
minor: u16,
},
HeaderOutOfBounds {
field: &'static str,
offset: u64,
length: u64,
file_size: u64,
},
ManifestDecode(String),
ManifestField(String),
SealInvalid(String),
IndexDigestMismatch {
expected: String,
actual: String,
},
DataDigestMismatch {
expected: String,
actual: String,
},
IndexNotSorted {
index: usize,
key: String,
next_key: String,
},
DuplicateEntryKey {
index: usize,
key: String,
},
IndexSizeMismatch {
size: u64,
record_size: usize,
},
EpochRollback {
scope: String,
epoch: u64,
high_water: u64,
},
ContinuityBreak {
scope: String,
},
DeltaMissingBase,
ForkDetected {
scope: String,
},
EntryOutOfBounds {
offset: u64,
length: u32,
},
ReservedNotZero {
index: usize,
},
Io(Error),
Write(String),
InvalidOperation(String),
}Variants§
BadMagic
UnsupportedVersion
HeaderOutOfBounds
ManifestDecode(String)
ManifestField(String)
SealInvalid(String)
IndexDigestMismatch
DataDigestMismatch
IndexNotSorted
DuplicateEntryKey
IndexSizeMismatch
EpochRollback
ContinuityBreak
DeltaMissingBase
ForkDetected
EntryOutOfBounds
ReservedNotZero
Io(Error)
Write(String)
InvalidOperation(String)
Trait Implementations§
Source§impl Error for AhuError
impl Error for AhuError
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()
Auto Trait Implementations§
impl Freeze for AhuError
impl !RefUnwindSafe for AhuError
impl Send for AhuError
impl Sync for AhuError
impl Unpin for AhuError
impl UnsafeUnpin for AhuError
impl !UnwindSafe for AhuError
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