Struct aml::value::StatusObject[][src]

pub struct StatusObject {
    pub present: bool,
    pub enabled: bool,
    pub show_in_ui: bool,
    pub functional: bool,
    pub battery_present: bool,
}

Representation of the return value of a _STA method, which represents the status of an object. It must be evaluated, if present, before evaluating the _INI method for an device.

The Default implementation of this type is the correct value to use if a device doesn’t have a _STA object to evaluate.

Fields

present: bool

Whether the device is physically present. If this is false, enabled should also be false (i.e. a device that is not present can’t be enabled). However, this is not enforced here if the firmware is doing something wrong.

enabled: bool

Whether the device is enabled. Both present and enabled must be true for the device to decode its hardware resources.

show_in_ui: boolfunctional: boolbattery_present: bool

Only applicable for Control Method Battery Devices (PNP0C0A). For all other devices, ignore this value.

Trait Implementations

impl Clone for StatusObject[src]

impl Copy for StatusObject[src]

impl Debug for StatusObject[src]

impl Default for StatusObject[src]

impl Eq for StatusObject[src]

impl PartialEq<StatusObject> for StatusObject[src]

impl StructuralEq for StatusObject[src]

impl StructuralPartialEq for StatusObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.