#[non_exhaustive]
pub enum Error {
    NotMapped,
    InvalidFrameAddress(PhysAddr),
    NotAligned,
}
Expand description

Error returned by this module

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

NotMapped

The given virtual address is not mapped to a physical frame.

InvalidFrameAddress(PhysAddr)

The page table entry for the given virtual address points to an invalid physical address.

NotAligned

The given virtual address is not page aligned.

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.

Should always be Self

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.