Struct aml::value::StatusObject [−][src]
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: bool
functional: bool
battery_present: bool
Only applicable for Control Method Battery Devices (PNP0C0A
). For all other devices, ignore this value.
Trait Implementations
impl Clone for StatusObject
[src]
fn clone(&self) -> StatusObject
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &StatusObject) -> bool
[src]
fn ne(&self, other: &StatusObject) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,