pub struct IOPMSystemCapabilityChangeParameters {
pub notifyRef: u32,
pub maxWaitForReply: u32,
pub changeFlags: u32,
pub fromCapabilities: u32,
pub toCapabilities: u32,
/* private fields */
}pwr_mgt only.Expand description
A structure describing a system capability change.
A system capability change is a system level transition from a set
of system capabilities to a new set of system capabilities. Power management
sends a
kIOMessageSystemCapabilityChange
message and provides
this structure as the message data (by reference) to
gIOPriorityPowerStateInterest
clients when system capability
changes.
Field: notifyRef An identifier for this message notification. Clients with pending
I/O can signal completion by calling
allowPowerChange()
with this
value as the argument. Clients that are able to process the notification
synchronously should ignore this field.
Field: maxWaitForReply A return value to the caller indicating the maximum time in
microseconds to wait for the
allowPowerChange()
call. The default
value is zero, which indicates the client processing has finished, and power
management should not wait for an
allowPowerChange()
call.
Field: changeFlags Flags will be set to indicate whether the notification precedes
the capability change (
kIOPMSystemCapabilityWillChange
), or after
the capability change has occurred (
kIOPMSystemCapabilityDidChange
).
Field: __reserved1 Set to zero.
Field: fromCapabilities The system capabilities at the start of the transition.
Field: toCapabilities The system capabilities at the end of the transition.
Field: __reserved2 Set to zero.
See also Apple’s documentation
Fields§
§notifyRef: u32§maxWaitForReply: u32§changeFlags: u32§fromCapabilities: u32§toCapabilities: u32Trait Implementations§
Source§impl Clone for IOPMSystemCapabilityChangeParameters
impl Clone for IOPMSystemCapabilityChangeParameters
Source§fn clone(&self) -> IOPMSystemCapabilityChangeParameters
fn clone(&self) -> IOPMSystemCapabilityChangeParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Encode for IOPMSystemCapabilityChangeParameters
Available on crate feature objc2 only.
impl Encode for IOPMSystemCapabilityChangeParameters
objc2 only.Source§impl PartialEq for IOPMSystemCapabilityChangeParameters
impl PartialEq for IOPMSystemCapabilityChangeParameters
Source§fn eq(&self, other: &IOPMSystemCapabilityChangeParameters) -> bool
fn eq(&self, other: &IOPMSystemCapabilityChangeParameters) -> bool
self and other values to be equal, and is used by ==.Source§impl RefEncode for IOPMSystemCapabilityChangeParameters
Available on crate feature objc2 only.
impl RefEncode for IOPMSystemCapabilityChangeParameters
objc2 only.