pub struct BehaviorPatternSkill { /* private fields */ }Expand description
Stateless skill that evaluates every registered pattern against the context.
Implementations§
Trait Implementations§
Source§impl Skill for BehaviorPatternSkill
impl Skill for BehaviorPatternSkill
fn id(&self) -> &str
fn description(&self) -> &str
Source§fn applies(&self, _ctx: &InvestigationContext) -> bool
fn applies(&self, _ctx: &InvestigationContext) -> bool
Whether this skill is willing to run given the current context.
Default: always applicable. Specialist skills typically gate on
signal presence or evidence already collected.
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
_tools: &'life2 ToolRegistry,
) -> Pin<Box<dyn Future<Output = Result<SkillOutcome, KernelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
_tools: &'life2 ToolRegistry,
) -> Pin<Box<dyn Future<Output = Result<SkillOutcome, KernelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the skill. Implementations may inspect and mutate
ctx
directly (appending evidence/signals) and/or return non-evidence
adjustments via SkillOutcome.Auto Trait Implementations§
impl Freeze for BehaviorPatternSkill
impl !RefUnwindSafe for BehaviorPatternSkill
impl Send for BehaviorPatternSkill
impl Sync for BehaviorPatternSkill
impl Unpin for BehaviorPatternSkill
impl UnsafeUnpin for BehaviorPatternSkill
impl !UnwindSafe for BehaviorPatternSkill
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