[][src]Enum sunrise_kernel::paging::bookkeeping::QueryMemory

pub enum QueryMemory<'a> {
    Available(Mapping),
    Used(&'a Mapping),
}

Because we do not store Available mappings internally, we need this enum to return a new available mappings, or a reference to the stored mapping.

Variants

Available(Mapping)

The address fell in an available range.

Used(&'a Mapping)

The address fell in an existing mapping.

Implementations

impl<'a> QueryMemory<'a>[src]

pub fn mapping(&self) -> &Mapping[src]

Returns a reference to the underlying mapping.

Trait Implementations

impl<'a> Debug for QueryMemory<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for QueryMemory<'a>

impl<'a> Send for QueryMemory<'a>

impl<'a> Sync for QueryMemory<'a>

impl<'a> Unpin for QueryMemory<'a>

impl<'a> !UnwindSafe for QueryMemory<'a>

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.