pub struct PatternDetector { /* private fields */ }Expand description
Detects repeated action sequences from execution history
Implementations§
Source§impl PatternDetector
impl PatternDetector
pub fn new(config: DetectorConfig) -> Self
pub fn with_defaults() -> Self
Sourcepub fn record(
&self,
signature: &str,
actions: &[String],
tools: &[String],
success: bool,
)
pub fn record( &self, signature: &str, actions: &[String], tools: &[String], success: bool, )
Record an action sequence execution
Sourcepub fn detect(&self) -> Vec<DetectedPattern>
pub fn detect(&self) -> Vec<DetectedPattern>
Detect patterns that meet the compilation threshold
Sourcepub fn signature_count(&self) -> usize
pub fn signature_count(&self) -> usize
Number of tracked signatures
Auto Trait Implementations§
impl !Freeze for PatternDetector
impl !RefUnwindSafe for PatternDetector
impl Send for PatternDetector
impl Sync for PatternDetector
impl Unpin for PatternDetector
impl UnsafeUnpin for PatternDetector
impl UnwindSafe for PatternDetector
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