#[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.
Fields§
§header: Sdt§emulated_device_flags: u32Implementations§
Source§impl Waet
impl Waet
Sourcepub fn get() -> Option<&'static Waet>
pub fn get() -> Option<&'static Waet>
Finds the WAET in the given AcpiTables and returns a reference to it.
Sourcepub fn rtc_good(&self) -> bool
pub fn rtc_good(&self) -> bool
Returns whether the RTC has been enhanced not to require acknowledgment after it asserts an interrupt.
Sourcepub fn acpi_pm_timer_good(&self) -> bool
pub fn acpi_pm_timer_good(&self) -> bool
Returns whether the ACPI PM timer has been enhanced not to require multiple reads.
Trait Implementations§
Source§impl FromBytes for Waet
impl FromBytes for Waet
Source§impl TryFromBytes for Waet
impl TryFromBytes for Waet
§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 Waet
Auto Trait Implementations§
impl Freeze for Waet
impl RefUnwindSafe for Waet
impl Send for Waet
impl Sync for Waet
impl Unpin for Waet
impl UnsafeUnpin for Waet
impl UnwindSafe for Waet
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