pub struct RuntimePolicy {
pub alert_threshold: f64,
pub suspicious_processes: Vec<String<MAX_LABEL_LEN>, MAX_SUSPICIOUS_PROCESSES>,
pub suspicious_patterns: Vec<String<MAX_LABEL_LEN>, MAX_SUSPICIOUS_PATTERNS>,
pub registered_custom_conditions: Vec<String<MAX_LABEL_LEN>, MAX_CUSTOM_CONDITIONS>,
}Expand description
Stack-only runtime policy for no-allocation operation.
Fields§
§alert_threshold: f64Alert threshold.
suspicious_processes: Vec<String<MAX_LABEL_LEN>, MAX_SUSPICIOUS_PROCESSES>Suspicious process patterns.
suspicious_patterns: Vec<String<MAX_LABEL_LEN>, MAX_SUSPICIOUS_PATTERNS>Suspicious artifact patterns.
registered_custom_conditions: Vec<String<MAX_LABEL_LEN>, MAX_CUSTOM_CONDITIONS>Registered custom condition names.
Implementations§
Source§impl RuntimePolicy
impl RuntimePolicy
Sourcepub fn is_suspicious_process(&self, name: &str) -> bool
pub fn is_suspicious_process(&self, name: &str) -> bool
Check for suspicious process name using ASCII case-insensitive substring matching.
No heap allocation occurs.
Sourcepub fn is_registered_custom_condition(&self, name: &str) -> bool
pub fn is_registered_custom_condition(&self, name: &str) -> bool
Check if a custom condition name is pre-registered.
Trait Implementations§
Source§impl Clone for RuntimePolicy
impl Clone for RuntimePolicy
Source§fn clone(&self) -> RuntimePolicy
fn clone(&self) -> RuntimePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimePolicy
impl RefUnwindSafe for RuntimePolicy
impl Send for RuntimePolicy
impl Sync for RuntimePolicy
impl Unpin for RuntimePolicy
impl UnsafeUnpin for RuntimePolicy
impl UnwindSafe for RuntimePolicy
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