pub enum Ext4Error {
Show 16 variants
Io(Error),
InvalidMagic {
found: u16,
},
InvalidSuperblock(String),
UnsupportedFeature(String),
InodeOutOfRange {
ino: u64,
max: u64,
},
BlockOutOfRange {
block: u64,
max: u64,
},
CorruptMetadata {
structure: &'static str,
detail: String,
},
ChecksumMismatch {
structure: &'static str,
expected: u32,
computed: u32,
},
PathNotFound(String),
NotADirectory(String),
NotASymlink(String),
SymlinkLoop {
path: String,
depth: u32,
},
NoJournal,
JournalCorrupt(String),
RecoveryFailed {
ino: u64,
reason: String,
},
TooShort {
structure: &'static str,
expected: usize,
found: usize,
},
}Expand description
All errors produced by the ext4fs library.
Variants§
Io(Error)
I/O error from the underlying reader.
InvalidMagic
The superblock magic number was not 0xEF53.
InvalidSuperblock(String)
A superblock field is invalid or out of range.
UnsupportedFeature(String)
The filesystem uses an incompatible feature we cannot handle.
InodeOutOfRange
The requested inode number is out of range.
BlockOutOfRange
The requested block number is out of range.
CorruptMetadata
A metadata structure is corrupt.
ChecksumMismatch
CRC32C checksum mismatch.
PathNotFound(String)
Path does not exist.
NotADirectory(String)
Expected a directory, found something else.
NotASymlink(String)
Expected a symlink, found something else.
SymlinkLoop
Too many levels of symbolic links.
NoJournal
Filesystem has no journal.
JournalCorrupt(String)
Journal data is corrupt.
RecoveryFailed
Could not recover file data.
TooShort
Insufficient data to parse a structure.
Trait Implementations§
Source§impl Error for Ext4Error
impl Error for Ext4Error
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 !RefUnwindSafe for Ext4Error
impl !UnwindSafe for Ext4Error
impl Freeze for Ext4Error
impl Send for Ext4Error
impl Sync for Ext4Error
impl Unpin for Ext4Error
impl UnsafeUnpin for Ext4Error
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