pub enum Error {
Block(Error),
Io(Error),
NoPartitionTable,
GptHeaderCrc,
GptEntriesCrc,
GptCorrupt(&'static str),
MbrCorrupt(&'static str),
GptBackupMismatch(&'static str),
Invalid(&'static str),
DeviceTooSmall,
}Variants§
Block(Error)
Block-layer error (read failure, short read, etc.). Lifted from
fs_core::Error so any BlockRead failure flows up unchanged.
Io(Error)
Underlying I/O failure that didn’t go through fs-core (rare —
retained for direct std::io::Error sources).
NoPartitionTable
No GPT signature and no MBR signature found.
GptHeaderCrc
GPT header was located but failed CRC validation.
GptEntriesCrc
GPT partition-entry array failed CRC validation.
GptCorrupt(&'static str)
GPT header field combination is internally inconsistent.
MbrCorrupt(&'static str)
MBR signature missing or extended-partition chain broken.
GptBackupMismatch(&'static str)
GPT primary header and backup header disagree on the partition list, header fields, or entry-array CRC. Carries a short reason string. The probe path treats this as advisory by default — the variant only surfaces if a caller explicitly asks for backup validation.
Invalid(&'static str)
Mutation API rejected an input: overlap, out-of-bounds, alignment impossible, etc. Carries a short reason string.
DeviceTooSmall
Mutation API tried to write a partition table that does not fit the device, or the device is too small for the chosen table type.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()