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
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
The error was thrown because a passed-in buffer did not match a size requirement.
Trait Implementations§
Source§impl Clone for ErrorCause
impl Clone for ErrorCause
Source§fn clone(&self) -> ErrorCause
fn clone(&self) -> ErrorCause
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorCause
impl Debug for ErrorCause
Source§impl Hash for ErrorCause
impl Hash for ErrorCause
Source§impl PartialEq for ErrorCause
impl PartialEq for ErrorCause
impl Copy for ErrorCause
impl Eq for ErrorCause
impl StructuralPartialEq for ErrorCause
Auto Trait Implementations§
impl Freeze for ErrorCause
impl RefUnwindSafe for ErrorCause
impl Send for ErrorCause
impl Sync for ErrorCause
impl Unpin for ErrorCause
impl UnwindSafe for ErrorCause
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