pub struct GuardRule {
pub root_pid: u32,
pub max_levels: u32,
pub filter: Option<ProcessFilter>,
pub cpu_mode: CpuMode,
pub sample_duration: Option<Duration>,
}Expand description
Rule configuration for one guard evaluation cycle.
Fields§
§root_pid: u32Root PID used for descendants traversal.
max_levels: u32Maximum descendants traversal depth.
filter: Option<ProcessFilter>Optional descendants filter.
cpu_mode: CpuModeCPU measurement mode used for cpu_above filtering.
sample_duration: Option<Duration>Optional sampling interval used when cpu_mode = Monitor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GuardRule
impl RefUnwindSafe for GuardRule
impl Send for GuardRule
impl Sync for GuardRule
impl Unpin for GuardRule
impl UnsafeUnpin for GuardRule
impl UnwindSafe for GuardRule
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