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§
source§impl PartialEq for JobPolicy
impl PartialEq for JobPolicy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)