#[repr(C, packed(1))]pub struct HpetAcpiTable {
pub header: Sdt,
pub hardware_revision_id: u8,
pub comparator_descriptor: u8,
pub pci_vendor_id: u16,
pub gen_addr_struct: GenericAddressStructure,
pub hpet_number: u8,
pub min_periodic_clock_tick: u16,
pub oem_attribute: u8,
}Expand description
The structure of the HPET ACPI table.
Fields§
§header: Sdt§hardware_revision_id: u8§comparator_descriptor: u8§pci_vendor_id: u16§gen_addr_struct: GenericAddressStructure§hpet_number: u8§min_periodic_clock_tick: u16§oem_attribute: u8also called ‘page_protection’
Implementations§
Source§impl HpetAcpiTable
impl HpetAcpiTable
Sourcepub fn get() -> Option<&'static HpetAcpiTable>
pub fn get() -> Option<&'static HpetAcpiTable>
Finds the HPET in the given AcpiTables and returns a reference to it.
Trait Implementations§
Source§impl Clone for HpetAcpiTable
impl Clone for HpetAcpiTable
Source§fn clone(&self) -> HpetAcpiTable
fn clone(&self) -> HpetAcpiTable
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 HpetAcpiTable
impl Debug for HpetAcpiTable
Source§impl FromBytes for HpetAcpiTable
impl FromBytes for HpetAcpiTable
Source§impl FromZeros for HpetAcpiTable
impl FromZeros for HpetAcpiTable
Source§impl TryFromBytes for HpetAcpiTablewhere
Sdt: TryFromBytes,
u8: TryFromBytes,
u16: TryFromBytes,
GenericAddressStructure: TryFromBytes,
impl TryFromBytes for HpetAcpiTablewhere
Sdt: TryFromBytes,
u8: TryFromBytes,
u16: TryFromBytes,
GenericAddressStructure: TryFromBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for HpetAcpiTable
Auto Trait Implementations§
impl Freeze for HpetAcpiTable
impl RefUnwindSafe for HpetAcpiTable
impl Send for HpetAcpiTable
impl Sync for HpetAcpiTable
impl Unpin for HpetAcpiTable
impl UnsafeUnpin for HpetAcpiTable
impl UnwindSafe for HpetAcpiTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more