pub struct Stores {
pub events: Arc<dyn EventStore>,
pub artifacts: Arc<dyn ArtifactStore>,
}Expand description
Store bundle passed to the engine.
Keeping the stores grouped makes it easier for higher layers to swap persistence backends without threading each store separately through every engine constructor.
Fields§
§events: Arc<dyn EventStore>Event store used for append-only kernel and domain events.
artifacts: Arc<dyn ArtifactStore>Artifact store used for manifests, snapshots, facts, and outputs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stores
impl !RefUnwindSafe for Stores
impl Send for Stores
impl Sync for Stores
impl Unpin for Stores
impl UnsafeUnpin for Stores
impl !UnwindSafe for Stores
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