pub struct ReasonerEngine { /* private fields */ }Expand description
Compatibility layer for legacy ReasonerEngine API Delegates to the new ReasoningEngine
Implementations§
Source§impl ReasonerEngine
impl ReasonerEngine
Sourcepub async fn add_event(&self, event: CyberEvent) -> Result<(), ReasonerError>
pub async fn add_event(&self, event: CyberEvent) -> Result<(), ReasonerError>
Add a cyber security event for reasoning
Sourcepub async fn reason(&self) -> Result<Vec<SecurityAction>, ReasonerError>
pub async fn reason(&self) -> Result<Vec<SecurityAction>, ReasonerError>
Execute reasoning and return proposed security actions No side effects - only returns action proposals
Sourcepub async fn get_graph_store(&self) -> Arc<RwLock<RdfStore>>
pub async fn get_graph_store(&self) -> Arc<RwLock<RdfStore>>
Get current graph store (read-only access)
Sourcepub async fn reset(&mut self) -> Result<(), ReasonerError>
pub async fn reset(&mut self) -> Result<(), ReasonerError>
Clear all events and reset reasoning state
Sourcepub fn add_rule(&mut self, _rule: InferenceRule)
pub fn add_rule(&mut self, _rule: InferenceRule)
Add custom inference rule
Auto Trait Implementations§
impl Freeze for ReasonerEngine
impl !RefUnwindSafe for ReasonerEngine
impl Send for ReasonerEngine
impl Sync for ReasonerEngine
impl Unpin for ReasonerEngine
impl !UnwindSafe for ReasonerEngine
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