Enum nt_hive::NtHiveError [−][src]
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
The checksum in the base block should be {expected}, but it is {actual}
The data at offset {offset:#010x} should have a size of {expected} bytes, but it only has {actual} bytes
The 4-byte signature field at offset {offset:#010x} should contain {expected:?}, but it contains {actual:?}
The struct at offset {offset:#010x} should have a size of {expected} bytes, but only {actual} bytes are left in the slice
Expected one of the key value data types {expected:?}, but found {actual:?}
Fields of InvalidKeyValueDataType
expected: &'static [KeyValueDataType]
actual: KeyValueDataType
The size field at offset {offset:#010x} specifies {expected} bytes, but only {actual} bytes are left in the slice
The size field at offset {offset:#010x} specifies {size} bytes, but they are not aligned to the expected {expected_alignment} bytes
The 2-byte signature field at offset {offset:#010x} should contain {expected:?}, but it contains {actual:?}
The sequence numbers in the base block do not match ({primary} != {secondary})
The cell at offset {offset:#010x} with a size of {size} bytes is unallocated
The clustering factor in the base block is expected to be {expected}, but it is {actual}
The file format in the base block is expected to be {expected}, but it is {actual}
The file type in the base block is expected to be {expected}, but it is {actual}
The key value data type at offset {offset:#010x} is {actual:#010x}, which is not supported
The version in the base block ({major}.{minor}) is unsupported
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NtHiveError
impl Send for NtHiveError
impl Sync for NtHiveError
impl Unpin for NtHiveError
impl UnwindSafe for NtHiveError
Blanket Implementations
Mutably borrows from an owned value. Read more