pub struct Runtime { /* private fields */ }Expand description
The assembled runtime: gates over a shared store + artifact sink. One event turns into per-gate findings plus emitted records; the raw observation is persisted unconditionally so the SQLite store refreshes alongside every observation.
Implementations§
Source§impl Runtime
impl Runtime
pub fn new(store: Box<dyn Store>, artifacts: Box<dyn ArtifactSink>) -> Self
Sourcepub fn dispatch(&self, event: &Event) -> Result<Vec<Finding>>
pub fn dispatch(&self, event: &Event) -> Result<Vec<Finding>>
Route one host event through every gate. Returns all findings; emitted records and the raw observation are persisted.
Sourcepub fn sweep(&self) -> Result<Vec<Finding>>
pub fn sweep(&self) -> Result<Vec<Finding>>
Periodic sweep across every gate (stale harvest, reconciliation). Sweep itself is an observation row so patrol cadence is auditable.
pub fn store(&self) -> &dyn Store
Auto Trait Implementations§
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl !UnwindSafe for Runtime
impl Freeze for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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