#[repr(C)]pub struct ResourceDescription {
pub header: Header,
pub owner: [u8; 16],
pub resource_type: ResourceType,
pub resource_attribute: ResourceAttributeType,
pub physical_start: PhysicalAddress,
pub resource_length: u64,
}Expand description
Resource Descriptor HOB, defined in [UEFI-PI Spec] section 5.5.
The resource descriptor HOB describes the resource properties of all fixed, nonrelocatable resource ranges found on the processor host bus during the HOB producer phase. This HOB type does not describe how memory is used but instead describes the attributes of the physical memory present.
Fields§
§header: Header§owner: [u8; 16]§resource_type: ResourceType§resource_attribute: ResourceAttributeType§physical_start: PhysicalAddress§resource_length: u64Implementations§
Trait Implementations§
Source§impl Clone for ResourceDescription
impl Clone for ResourceDescription
Source§fn clone(&self) -> ResourceDescription
fn clone(&self) -> ResourceDescription
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 ResourceDescription
impl Debug for ResourceDescription
Source§impl<'a> TryFromCtx<'a, Endian> for ResourceDescriptionwhere
ResourceDescription: 'a,
impl<'a> TryFromCtx<'a, Endian> for ResourceDescriptionwhere
ResourceDescription: 'a,
Source§impl<'a> TryIntoCtx<Endian> for &'a ResourceDescription
impl<'a> TryIntoCtx<Endian> for &'a ResourceDescription
Source§impl TryIntoCtx<Endian> for ResourceDescription
impl TryIntoCtx<Endian> for ResourceDescription
impl Copy for ResourceDescription
Auto Trait Implementations§
impl Freeze for ResourceDescription
impl RefUnwindSafe for ResourceDescription
impl Send for ResourceDescription
impl Sync for ResourceDescription
impl Unpin for ResourceDescription
impl UnwindSafe for ResourceDescription
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