FixedFeatureFlags

Struct FixedFeatureFlags 

Source
pub struct FixedFeatureFlags(/* private fields */);

Implementations§

Source§

impl FixedFeatureFlags

Source

pub fn supports_equivalent_to_wbinvd(&self) -> bool

If true, an equivalent to the x86 WBINVD instruction is supported. All caches will be flushed and invalidated upon completion of this instruction, and memory coherency is properly maintained. The cache SHALL only contain what OSPM references or allows to be cached.

Source

pub fn wbinvd_flushes_all_caches(&self) -> bool

If true, WBINVD properly flushes all caches and memory coherency is maintained, but caches may not be invalidated.

Source

pub fn all_procs_support_c1_power_state(&self) -> bool

If true, all processors implement the C1 power state.

Source

pub fn c2_configured_for_mp_system(&self) -> bool

If true, the C2 power state is configured to work on a uniprocessor and multiprocessor system.

Source

pub fn power_button_is_control_method(&self) -> bool

If true, the power button is handled as a control method device. If false, the power button is handled as a fixed-feature programming model.

Source

pub fn sleep_button_is_control_method(&self) -> bool

If true, the sleep button is handled as a control method device. If false, the sleep button is handled as a fixed-feature programming model.

Source

pub fn no_rtc_wake_in_fixed_register_space(&self) -> bool

If true, the RTC wake status is not supported in fixed register space.

Source

pub fn rtc_wakes_system_from_s4(&self) -> bool

If true, the RTC alarm function can wake the system from an S4 sleep state.

Source

pub fn pm_timer_is_32_bit(&self) -> bool

If true, indicates that the PM timer is a 32-bit value. If false, the PM timer is a 24-bit value and the remaining 8 bits are clear.

Source

pub fn supports_docking(&self) -> bool

If true, the system supports docking.

Source

pub fn supports_system_reset_via_fadt(&self) -> bool

If true, the system supports system reset via the reset_reg field of the FADT.

Source

pub fn case_is_sealed(&self) -> bool

If true, the system supports no expansion capabilities and the case is sealed.

Source

pub fn system_is_headless(&self) -> bool

If true, the system cannot detect the monitor or keyboard/mouse devices.

Source

pub fn use_instr_after_write_to_slp_typx(&self) -> bool

If true, OSPM must use a processor instruction after writing to the SLP_TYPx register.

Source

pub fn supports_pciexp_wake_in_pm1(&self) -> bool

If set, the platform supports the PCIEXP_WAKE_STS and PCIEXP_WAKE_EN bits in the PM1 status and enable registers.

Source

pub fn use_pm_or_hpet_for_monotonically_decreasing_timers(&self) -> bool

If true, OSPM should use the ACPI power management timer or HPET for monotonically-decreasing timers.

Source

pub fn rtc_sts_is_valid_after_wakeup_from_s4(&self) -> bool

If true, the contents of the RTC_STS register are valid after wakeup from S4.

Source

pub fn ospm_may_leave_gpe_wake_events_armed_before_s5(&self) -> bool

If true, the platform supports OSPM leaving GPE wake events armed prior to an S5 transition.

Source

pub fn lapics_must_use_cluster_model_for_logical_mode(&self) -> bool

If true, all LAPICs must be configured using the cluster destination model when delivering interrupts in logical mode.

Source

pub fn local_xapics_must_use_physical_destination_mode(&self) -> bool

If true, all LXAPICs must be configured using physical destination mode.

Source

pub fn system_is_hw_reduced_acpi(&self) -> bool

If true, this system is a hardware-reduced ACPI platform, and software methods are used for fixed-feature functions defined in chapter 4 of the ACPI specification.

Source

pub fn no_benefit_to_s3(&self) -> bool

If true, the system can achieve equal or better power savings in an S0 power state, making an S3 transition useless.

Trait Implementations§

Source§

impl Clone for FixedFeatureFlags

Source§

fn clone(&self) -> FixedFeatureFlags

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for FixedFeatureFlags

Source§

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

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

impl Copy for FixedFeatureFlags

Auto Trait Implementations§

§

impl Freeze for FixedFeatureFlags

§

impl RefUnwindSafe for FixedFeatureFlags

§

impl Send for FixedFeatureFlags

§

impl Sync for FixedFeatureFlags

§

impl Unpin for FixedFeatureFlags

§

impl UnwindSafe for FixedFeatureFlags

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.