Enum multiboot2::MbiLoadError
source · pub enum MbiLoadError {
IllegalAddress,
IllegalTotalSize(u32),
NoEndTag,
}
Expand description
Error type that describes errors while loading/parsing a multiboot2 information structure from a given address.
Variants§
IllegalAddress
The address is invalid. Make sure that the address is 8-byte aligned, according to the spec.
IllegalTotalSize(u32)
The total size of the multiboot2 information structure must be not zero and a multiple of 8.
NoEndTag
Missing end tag. Each multiboot2 boot information requires to have an end tag.
Trait Implementations§
source§impl Clone for MbiLoadError
impl Clone for MbiLoadError
source§fn clone(&self) -> MbiLoadError
fn clone(&self) -> MbiLoadError
Returns a copy 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 MbiLoadError
impl Debug for MbiLoadError
source§impl Display for MbiLoadError
impl Display for MbiLoadError
source§impl Error for MbiLoadError
impl Error for MbiLoadError
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 Hash for MbiLoadError
impl Hash for MbiLoadError
source§impl Ord for MbiLoadError
impl Ord for MbiLoadError
source§fn cmp(&self, other: &MbiLoadError) -> Ordering
fn cmp(&self, other: &MbiLoadError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MbiLoadError
impl PartialEq for MbiLoadError
source§fn eq(&self, other: &MbiLoadError) -> bool
fn eq(&self, other: &MbiLoadError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MbiLoadError
impl PartialOrd for MbiLoadError
source§fn partial_cmp(&self, other: &MbiLoadError) -> Option<Ordering>
fn partial_cmp(&self, other: &MbiLoadError) -> Option<Ordering>
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 MbiLoadError
impl Eq for MbiLoadError
impl StructuralPartialEq for MbiLoadError
Auto Trait Implementations§
impl Freeze for MbiLoadError
impl RefUnwindSafe for MbiLoadError
impl Send for MbiLoadError
impl Sync for MbiLoadError
impl Unpin for MbiLoadError
impl UnwindSafe for MbiLoadError
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