pub enum JobPolicy {
Basic(JobPolicyOption, Vec<(JobCondition, JobAction)>),
TimerSlack(MonotonicDuration, JobDefaultTimerMode),
}
Expand description
Holds a timer policy or a basic policy set for zx_job_set_policy
Variants§
Basic(JobPolicyOption, Vec<(JobCondition, JobAction)>)
TimerSlack(MonotonicDuration, JobDefaultTimerMode)
Trait Implementations§
impl StructuralPartialEq for JobPolicy
Auto Trait Implementations§
impl Freeze for JobPolicy
impl RefUnwindSafe for JobPolicy
impl Send for JobPolicy
impl Sync for JobPolicy
impl Unpin for JobPolicy
impl UnwindSafe for JobPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)