pub enum NtHiveError {
Show 15 variants
InvalidChecksum {
expected: u32,
actual: u32,
},
InvalidDataSize {
offset: usize,
expected: usize,
actual: usize,
},
InvalidFourByteSignature {
offset: usize,
expected: &'static [u8],
actual: [u8; 4],
},
InvalidHeaderSize {
offset: usize,
expected: usize,
actual: usize,
},
InvalidKeyValueDataType {
expected: &'static [KeyValueDataType],
actual: KeyValueDataType,
},
InvalidSizeField {
offset: usize,
expected: usize,
actual: usize,
},
InvalidSizeFieldAlignment {
offset: usize,
size: usize,
expected_alignment: usize,
},
InvalidTwoByteSignature {
offset: usize,
expected: &'static [u8],
actual: [u8; 2],
},
SequenceNumberMismatch {
primary: u32,
secondary: u32,
},
UnallocatedCell {
offset: usize,
size: i32,
},
UnsupportedClusteringFactor {
expected: u32,
actual: u32,
},
UnsupportedFileFormat {
expected: u32,
actual: u32,
},
UnsupportedFileType {
expected: u32,
actual: u32,
},
UnsupportedKeyValueDataType {
offset: usize,
actual: u32,
},
UnsupportedVersion {
major: u32,
minor: u32,
},
}
Expand description
Central error type of nt-hive.
Variants§
InvalidChecksum
InvalidDataSize
InvalidFourByteSignature
InvalidHeaderSize
InvalidKeyValueDataType
InvalidSizeField
InvalidSizeFieldAlignment
InvalidTwoByteSignature
SequenceNumberMismatch
UnallocatedCell
UnsupportedClusteringFactor
UnsupportedFileFormat
UnsupportedFileType
UnsupportedKeyValueDataType
UnsupportedVersion
Trait Implementations§
Source§impl Clone for NtHiveError
impl Clone for NtHiveError
Source§fn clone(&self) -> NtHiveError
fn clone(&self) -> NtHiveError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NtHiveError
impl Debug for NtHiveError
Source§impl Display for NtHiveError
impl Display for NtHiveError
Source§impl Error for NtHiveError
impl Error for NtHiveError
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 PartialEq for NtHiveError
impl PartialEq for NtHiveError
impl Eq for NtHiveError
impl StructuralPartialEq for NtHiveError
Auto Trait Implementations§
impl Freeze for NtHiveError
impl RefUnwindSafe for NtHiveError
impl Send for NtHiveError
impl Sync for NtHiveError
impl Unpin for NtHiveError
impl UnwindSafe for NtHiveError
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