pub enum RuleAction {
EnsureCgroup {
rule: String,
},
AddPid {
rule: String,
pid: u32,
},
TeardownEmpty {
rule: String,
},
}Expand description
One reconcile decision for a single rule.
Variants§
EnsureCgroup
Ensure the shared cgroup exists with the rule’s limits set.
AddPid
Add a matching process to the rule’s shared cgroup.
TeardownEmpty
No matching processes remain — tear down the (now empty) cgroup.
Trait Implementations§
Source§impl Clone for RuleAction
impl Clone for RuleAction
Source§impl Debug for RuleAction
impl Debug for RuleAction
impl Eq for RuleAction
Source§impl PartialEq for RuleAction
impl PartialEq for RuleAction
impl StructuralPartialEq for RuleAction
Auto Trait Implementations§
impl Freeze for RuleAction
impl RefUnwindSafe for RuleAction
impl Send for RuleAction
impl Sync for RuleAction
impl Unpin for RuleAction
impl UnsafeUnpin for RuleAction
impl UnwindSafe for RuleAction
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.