Struct waet::Waet

source ·
#[repr(C, packed(1))]
pub struct Waet { pub header: Sdt, pub emulated_device_flags: u32, }
Expand description

The Windows ACPI Emulated devices Table (WAET) allows virtualized OSes to avoid workarounds for errata on physical devices.

https://download.microsoft.com/download/7/E/7/7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2/WAET.docx

Fields§

§header: Sdt§emulated_device_flags: u32

Implementations§

source§

impl Waet

source

pub fn get(acpi_tables: &AcpiTables) -> Option<&Waet>

Finds the WAET in the given AcpiTables and returns a reference to it.

source

pub fn rtc_good(&self) -> bool

Returns whether the RTC has been enhanced not to require acknowledgment after it asserts an interrupt.

If this returns true, an interrupt handler can bypass reading the RTC register to unlatch the pending interrupt.

source

pub fn acpi_pm_timer_good(&self) -> bool

Returns whether the ACPI PM timer has been enhanced not to require multiple reads.

If this returns true, only a single read of the ACPI PM timer is necessary to obtain a reliable value from it.

Trait Implementations§

source§

impl Clone for Waet

source§

fn clone(&self) -> Waet

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Waet

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for Waet

source§

impl FromBytes for Waet

Auto Trait Implementations§

§

impl RefUnwindSafe for Waet

§

impl Send for Waet

§

impl Sync for Waet

§

impl Unpin for Waet

§

impl UnwindSafe for Waet

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.