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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.