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 a multiple of 8. (Not in spec, but it is implicitly the case, because the begin of MBI and all tags are 8-byte aligned and the end tag is exactly 8 byte long).
NoEndTag
End tag missing. Each multiboot2 header 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§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 Hash for MbiLoadError
impl Hash for MbiLoadError
source§impl Ord for MbiLoadError
impl Ord for MbiLoadError
source§impl PartialEq for MbiLoadError
impl PartialEq for MbiLoadError
source§impl PartialOrd for MbiLoadError
impl PartialOrd for MbiLoadError
impl Copy for MbiLoadError
impl Eq for MbiLoadError
impl StructuralEq for MbiLoadError
impl StructuralPartialEq for MbiLoadError
Auto Trait Implementations§
impl RefUnwindSafe for MbiLoadError
impl Send for MbiLoadError
impl Sync for MbiLoadError
impl Unpin for MbiLoadError
impl UnwindSafe for MbiLoadError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4.
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Creates a reference to a (dynamically sized) tag type in a safe way.
DST tags need to implement a proper
Self::dst_size
implementation. Read more