pub struct ActivationTracker { /* private fields */ }Expand description
Remembers the policy last applied so only real changes reach the OS.
Implementations§
Source§impl ActivationTracker
impl ActivationTracker
Sourcepub fn transition(&self, want: Option<Activation>) -> Option<Activation>
pub fn transition(&self, want: Option<Activation>) -> Option<Activation>
The change to apply for want, or None when it is no change.
Trait Implementations§
Source§impl Debug for ActivationTracker
impl Debug for ActivationTracker
Auto Trait Implementations§
impl !Freeze for ActivationTracker
impl RefUnwindSafe for ActivationTracker
impl Send for ActivationTracker
impl Sync for ActivationTracker
impl Unpin for ActivationTracker
impl UnsafeUnpin for ActivationTracker
impl UnwindSafe for ActivationTracker
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