pub enum MbrError {
    UnknownPartitionType {
        part_id: u8,
    },
    InputTooSmall {
        input_size: usize,
        error_location: &'static str,
    },
    NullSectorIsNotNull {
        val: [u8; 2],
    },
    IoError(String),
    BootloaderSignatureNotSet {
        sig: [u8; 2],
    },
    IncompleteInput,
    InvalidAddressChs {
        cylinder: u32,
        head: u32,
        sector: u32,
    },
    InconsistentPartInfo {
        start: u32,
        end: u32,
        size: u32,
    },
    BrokenPartitionBounds,
}Variants§
UnknownPartitionType
InputTooSmall
NullSectorIsNotNull
IoError(String)
BootloaderSignatureNotSet
IncompleteInput
InvalidAddressChs
InconsistentPartInfo
BrokenPartitionBounds
Trait Implementations§
Source§impl Error for MbrError
 
impl Error for MbrError
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()
impl Eq for MbrError
impl StructuralPartialEq for MbrError
Auto Trait Implementations§
impl Freeze for MbrError
impl RefUnwindSafe for MbrError
impl Send for MbrError
impl Sync for MbrError
impl Unpin for MbrError
impl UnwindSafe for MbrError
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