persistent
Module: enforcement::session::persistent
Section titled “Module: enforcement::session::persistent”Contents
Section titled “Contents”Structs
PersistentSessionStateStore- Append-only JSONL-backed session state store.
firma_sidecar::enforcement::session::persistent::PersistentSessionStateStore
Section titled “firma_sidecar::enforcement::session::persistent::PersistentSessionStateStore”Struct
Append-only JSONL-backed session state store.
Methods:
fn open<impl AsRef<Path>>(path: impl Trait, capacity: usize) -> std::io::Result<Self>- open (or create) the session-state log atpath, replay it into anfn default_path(runtime_dir: &Path) -> PathBuf- Default path for the persistent store under a runtime directory.
Trait Implementations:
- SessionStateStore
fn record_action(self: &Self, session_id: &SessionId) -> u64fn signals(self: &Self, session_id: &SessionId) -> RuntimeSignalsfn record_outcome(self: &Self, session_id: &SessionId, action_class: &str, resource: &str, outcome: Outcome)fn advance_provenance(self: &Self, session_id: &SessionId, context_hash: &str, action_class: &str, resource: &str) -> String