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

pub enum TranslateResult {
    Frame4KiB {
        frame: PhysFrame<Size4KiB>,
        offset: u64,
    },
    Frame2MiB {
        frame: PhysFrame<Size2MiB>,
        offset: u64,
    },
    Frame1GiB {
        frame: PhysFrame<Size1GiB>,
        offset: u64,
    },
    PageNotMapped,
    InvalidFrameAddress(PhysAddr),
}

The return value of the MapperAllSizes::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

Frame4KiB

The page is mapped to a physical frame of size 4KiB.

Fields of Frame4KiB

frame: PhysFrame<Size4KiB>

The mapped frame.

offset: u64

The offset whithin the mapped frame.

Frame2MiB

The page is mapped to a physical frame of size 2MiB.

Fields of Frame2MiB

frame: PhysFrame<Size2MiB>

The mapped frame.

offset: u64

The offset whithin the mapped frame.

Frame1GiB

The page is mapped to a physical frame of size 2MiB.

Fields of Frame1GiB

frame: PhysFrame<Size1GiB>

The mapped frame.

offset: u64

The offset whithin the mapped frame.

PageNotMapped

The given page is not mapped to a physical frame.

InvalidFrameAddress(PhysAddr)

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

Trait Implementations

impl Debug for TranslateResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.