Skip to main content

set_policy_raw

Function set_policy_raw 

Source
pub unsafe fn set_policy_raw(
    policy: ove_pm_policy_fn,
    user_data: *mut c_void,
) -> Result<()>
Expand description

Raw-pointer variant of set_policy.

ยงSafety

The callback and user_data must remain valid for the lifetime of the registration. Prefer the safe PolicyHandler-based set_policy.