looprs-core 0.5.0

Domain types, ports, and macros for looprs
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! ObservationStore port — abstraction over observation persistence.

use crate::observation::Observation;

/// Port: persist captured observations to a durable store.
///
/// Implementations decide the backend (SQLite, filesystem, etc.).
pub trait ObservationStore: Send {
    /// Save a batch of observations. Called at session end.
    fn save(&self, observations: &[Observation]) -> Result<(), anyhow::Error>;
}