[][src]Struct uefi::table::boot::MemoryType

#[repr(transparent)]pub struct MemoryType(pub u32);

The type of a memory range.

UEFI allows firmwares and operating systems to introduce new memory types in the 0x70000000..0xFFFFFFFF range. Therefore, we don't know the full set of memory types at compile time, and it is not safe to model this C enum as a Rust enum.

Implementations

impl MemoryType[src]

pub const RESERVED: MemoryType[src]

This enum variant is not used.

pub const LOADER_CODE: MemoryType[src]

The code portions of a loaded UEFI application.

pub const LOADER_DATA: MemoryType[src]

The data portions of a loaded UEFI applications, as well as any memory allocated by it.

pub const BOOT_SERVICES_CODE: MemoryType[src]

Code of the boot drivers.

Can be reused after OS is loaded.

pub const BOOT_SERVICES_DATA: MemoryType[src]

Memory used to store boot drivers' data.

Can be reused after OS is loaded.

pub const RUNTIME_SERVICES_CODE: MemoryType[src]

Runtime drivers' code.

pub const RUNTIME_SERVICES_DATA: MemoryType[src]

Runtime services' code.

pub const CONVENTIONAL: MemoryType[src]

Free usable memory.

pub const UNUSABLE: MemoryType[src]

Memory in which errors have been detected.

pub const ACPI_RECLAIM: MemoryType[src]

Memory that holds ACPI tables. Can be reclaimed after they are parsed.

pub const ACPI_NON_VOLATILE: MemoryType[src]

Firmware-reserved addresses.

pub const MMIO: MemoryType[src]

A region used for memory-mapped I/O.

pub const MMIO_PORT_SPACE: MemoryType[src]

Address space used for memory-mapped port I/O.

pub const PAL_CODE: MemoryType[src]

Address space which is part of the processor.

pub const PERSISTENT_MEMORY: MemoryType[src]

Memory region which is usable and is also non-volatile.

Trait Implementations

impl Clone for MemoryType[src]

impl Copy for MemoryType[src]

impl Debug for MemoryType[src]

impl Eq for MemoryType[src]

impl PartialEq<MemoryType> for MemoryType[src]

impl StructuralEq for MemoryType[src]

impl StructuralPartialEq for MemoryType[src]

Auto Trait Implementations

impl Send for MemoryType

impl Sync for MemoryType

impl Unpin for MemoryType

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.