Enum x86_64::structures::paging::mapper::TranslateResult[][src]

pub enum TranslateResult {
    Mapped {
        frame: MappedFrame,
        offset: u64,
        flags: PageTableFlags,
    },
    NotMapped,
    InvalidFrameAddress(PhysAddr),
}
Expand description

The return value of the Translate::translate function.

If the given address has a valid mapping, a Frame4KiB, Frame2MiB, or Frame1GiB variant is returned, depending on the size of the mapped page. The remaining variants indicate errors.

Variants

Mapped

Fields

frame: MappedFrame

The mapped frame.

offset: u64

The offset whithin the mapped frame.

flags: PageTableFlags

The entry flags in the lowest-level page table.

Flags of higher-level page table entries are not included here, but they can still affect the effective flags for an address, for example when the WRITABLE flag is not set for a level 3 entry.

The virtual address is mapped to a physical frame.

NotMapped

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

InvalidFrameAddress(PhysAddr)

Tuple Fields

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

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

Performs the conversion.

Performs the conversion.

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.