Enum mbr_nostd::ErrorCause
source · pub enum ErrorCause {
UnsupportedPartitionError {
tag: u8,
},
InvalidMBRSuffix {
actual: [u8; 2],
},
BufferWrongSizeError {
expected: usize,
actual: usize,
},
}
Expand description
The possible causes of an error.
Variants
UnsupportedPartitionError
Fields
tag: u8
The unsupported partition type byte read from the table
The error was thrown because we could not determine a partition’s type in the MBR.
InvalidMBRSuffix
The error was thrown because a passed in byte buffer did not end in a valid
MBR suffix of 0x55aa
.
BufferWrongSizeError
Fields
expected: usize
The size of the buffer that the function expected
actual: usize
The size of the buffer passed into the function
The error was thrown because a passed-in buffer did not match a size requirement.
Trait Implementations
sourceimpl Clone for ErrorCause
impl Clone for ErrorCause
sourcefn clone(&self) -> ErrorCause
fn clone(&self) -> ErrorCause
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ErrorCause
impl Debug for ErrorCause
sourceimpl Hash for ErrorCause
impl Hash for ErrorCause
sourceimpl PartialEq<ErrorCause> for ErrorCause
impl PartialEq<ErrorCause> for ErrorCause
sourcefn eq(&self, other: &ErrorCause) -> bool
fn eq(&self, other: &ErrorCause) -> bool
impl Copy for ErrorCause
impl Eq for ErrorCause
impl StructuralEq for ErrorCause
impl StructuralPartialEq for ErrorCause
Auto Trait Implementations
impl RefUnwindSafe for ErrorCause
impl Send for ErrorCause
impl Sync for ErrorCause
impl Unpin for ErrorCause
impl UnwindSafe for ErrorCause
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more