pub enum NtfsError {
Show 26 variants
InvalidBootSignature {
found: u16,
},
InvalidOemId,
InvalidSectorSize {
found: u16,
},
InvalidSectorsPerCluster {
found: u8,
},
InvalidVolumeGeometry,
InvalidMftMagic,
InvalidIndexMagic,
InvalidFixup,
FixupMismatch {
expected: u16,
found: u16,
},
InvalidRecordSize,
MftRecordOutOfBounds {
index: u64,
},
StaleFileReference {
index: u64,
expected: u16,
found: u16,
},
AttributeNotFound {
attr_type: u32,
},
InvalidAttribute,
InvalidDataRun,
InvalidFileName,
InvalidUpcaseTable,
InvalidIndexEntry,
NotAFile,
NotADirectory,
EntryNotFound,
InvalidPath,
UnsupportedCompression,
UnsupportedEncryption,
UnexpectedEndOfData,
Io(Error),
}Expand description
Errors that can occur when working with NTFS filesystems.
Variants§
InvalidBootSignature
Invalid boot sector signature (expected 0xAA55)
InvalidOemId
Invalid OEM ID in boot sector (expected “NTFS “)
InvalidSectorSize
Invalid logical sector size in the boot sector
InvalidSectorsPerCluster
Invalid sectors-per-cluster value in the boot sector
InvalidVolumeGeometry
Invalid volume extent or MFT location in the boot sector
InvalidMftMagic
Invalid MFT record magic (expected “FILE”)
InvalidIndexMagic
Invalid index record magic (expected “INDX”)
InvalidFixup
Invalid or corrupt update sequence (fixup) array
FixupMismatch
Update sequence entry does not match the expected value
InvalidRecordSize
Invalid MFT record size in boot sector
MftRecordOutOfBounds
MFT record index is beyond the MFT data extent
StaleFileReference
A file reference points to a reused MFT record
Fields
AttributeNotFound
Required attribute was not found in the MFT record
InvalidAttribute
Malformed attribute header or value
InvalidDataRun
Malformed non-resident attribute data run
InvalidFileName
Could not decode a UTF-16LE filename
InvalidUpcaseTable
The $UpCase system file is missing or malformed
InvalidIndexEntry
Malformed index entry
NotAFile
Entry is not a regular file
NotADirectory
Entry is not a directory
EntryNotFound
Entry not found in directory
InvalidPath
Path is invalid (empty or malformed)
UnsupportedCompression
Compressed data streams are not supported
UnsupportedEncryption
Encrypted data streams are not supported
UnexpectedEndOfData
Data read went past the end of the available data runs
Io(Error)
I/O error from the underlying storage
Trait Implementations§
Source§impl Error for NtfsError
Available on crate feature std only.
impl Error for NtfsError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()