#[repr(C)]pub struct MemoryAllocationHeader {
pub name: [u8; 16],
pub memory_base_address: PhysicalAddress,
pub memory_length: u64,
pub memory_type: u32,
pub reserved: [u8; 4],
}Expand description
Memory Allocation Hob Header, defined in [UEFI-PI Spec], section 5.4
Describes all memory ranges used during the HOB producer phase that exist outside the HOB list. This HOB type describes how memory is used, not the physical attributes of memory.
Fields§
§name: [u8; 16]§memory_base_address: PhysicalAddress§memory_length: u64§memory_type: u32§reserved: [u8; 4]Implementations§
Trait Implementations§
Source§impl Clone for MemoryAllocationHeader
impl Clone for MemoryAllocationHeader
Source§fn clone(&self) -> MemoryAllocationHeader
fn clone(&self) -> MemoryAllocationHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryAllocationHeader
impl Debug for MemoryAllocationHeader
Source§impl<'a> TryFromCtx<'a, Endian> for MemoryAllocationHeaderwhere
MemoryAllocationHeader: 'a,
impl<'a> TryFromCtx<'a, Endian> for MemoryAllocationHeaderwhere
MemoryAllocationHeader: 'a,
Source§impl<'a> TryIntoCtx<Endian> for &'a MemoryAllocationHeader
impl<'a> TryIntoCtx<Endian> for &'a MemoryAllocationHeader
Source§impl TryIntoCtx<Endian> for MemoryAllocationHeader
impl TryIntoCtx<Endian> for MemoryAllocationHeader
impl Copy for MemoryAllocationHeader
Auto Trait Implementations§
impl Freeze for MemoryAllocationHeader
impl RefUnwindSafe for MemoryAllocationHeader
impl Send for MemoryAllocationHeader
impl Sync for MemoryAllocationHeader
impl Unpin for MemoryAllocationHeader
impl UnwindSafe for MemoryAllocationHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more