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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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