pub struct Stores {
pub prints: Arc<dyn PrintStore>,
pub events: Arc<dyn EventStore>,
pub images: Arc<dyn ImageStore>,
pub actions: Arc<dyn ActionStore>,
pub sessions: Arc<dyn SessionStore>,
pub filament: Arc<dyn FilamentStore>,
pub timeline: Arc<dyn TimelineStore>,
}Expand description
One store implementation, held once per aggregate it persists.
The composition root builds this from the one implementation it chose, by
Stores::of, and each consumer takes the handle for the aggregate it
names: seven shared handles to one backing rather than seven backings. A
consumer that needs several aggregates holds the bundle; one that needs one
clones that handle out of it.
Fields§
§prints: Arc<dyn PrintStore>The print record, its manifest and its narrowings.
events: Arc<dyn EventStore>The event log.
images: Arc<dyn ImageStore>The images stored beside events.
actions: Arc<dyn ActionStore>Actions, and the bounded interventions they open.
sessions: Arc<dyn SessionStore>The supervision session of a print.
filament: Arc<dyn FilamentStore>The filament ledger.
timeline: Arc<dyn TimelineStore>The printer-wide reading of the event log.
Implementations§
Source§impl Stores
impl Stores
Sourcepub fn of<S>(store: Arc<S>) -> Selfwhere
S: PrintStore + EventStore + ImageStore + ActionStore + SessionStore + FilamentStore + TimelineStore + 'static,
pub fn of<S>(store: Arc<S>) -> Selfwhere
S: PrintStore + EventStore + ImageStore + ActionStore + SessionStore + FilamentStore + TimelineStore + 'static,
Every aggregate’s handle onto one implementation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Stores
impl !UnwindSafe for Stores
impl Forget for Stores
impl Freeze for Stores
impl Move for Stores
impl Send for Stores
impl Sync for Stores
impl Unpin for Stores
impl UnsafeUnpin 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