pub struct RuleEngine { /* private fields */ }Expand description
The rule engine runs all registered detectors against a target.
Implementations§
Source§impl RuleEngine
impl RuleEngine
Sourcepub fn run(&self, target: &ScanTarget) -> Vec<Finding>
pub fn run(&self, target: &ScanTarget) -> Vec<Finding>
Run all detectors against a scan target.
Sourcepub fn list_rules(&self) -> Vec<RuleMetadata>
pub fn list_rules(&self) -> Vec<RuleMetadata>
List metadata for all registered rules.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleEngine
impl !RefUnwindSafe for RuleEngine
impl Send for RuleEngine
impl Sync for RuleEngine
impl Unpin for RuleEngine
impl UnsafeUnpin for RuleEngine
impl !UnwindSafe for RuleEngine
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