IOPMCancelScheduledPowerEvent

Function IOPMCancelScheduledPowerEvent 

Source
pub unsafe extern "C-unwind" fn IOPMCancelScheduledPowerEvent(
    time_to_wake: Option<&CFDate>,
    my_id: Option<&CFString>,
    type: Option<&CFString>,
) -> IOReturn
Available on crate feature pwr_mgt only.
Expand description

Cancel a previously scheduled power event.

Arguments mirror those to IOPMSchedulePowerEvent. All arguments must match the original arguments from when the power on was scheduled. Must be called as root.

Parameter time_to_wake: Cancel entry with this date and time.

Parameter my_id: Cancel entry with this name.

Parameter type: Type to cancel

Returns: kIOReturnSuccess on success, otherwise on failure

ยงSafety

  • time_to_wake might not allow None.
  • my_id might not allow None.
  • type might not allow None.