Enum multiboot2_header::LoadError
source · pub enum LoadError {
ChecksumMismatch,
InvalidAddress,
MagicNotFound,
TooSmall,
}Expand description
Errors that can occur when parsing a header from a slice.
See Multiboot2Header::find_header.
Variants§
ChecksumMismatch
The checksum does not match the data.
InvalidAddress
The header is not properly 64-bit aligned (or a null pointer).
MagicNotFound
The header does not contain the correct magic number.
TooSmall
The header is truncated.
Trait Implementations§
source§impl Error for LoadError
impl Error for LoadError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl Ord for LoadError
impl Ord for LoadError
source§impl PartialEq for LoadError
impl PartialEq for LoadError
source§impl PartialOrd for LoadError
impl PartialOrd for LoadError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for LoadError
impl Eq for LoadError
impl StructuralEq for LoadError
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnwindSafe for LoadError
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