pub struct ReadOnlyStores { /* private fields */ }Expand description
The read half of a persistence layer: six readers, no writer of any kind.
Build one with Stores::read_only, or with ReadOnlyStores::builder
when the reading implementations are not backed by a full Stores at all.
Cloning shares the same underlying implementations.
CommitStore has no read half — a commit is
the write — so it has no counterpart here.
Implementations§
Source§impl ReadOnlyStores
impl ReadOnlyStores
Sourcepub fn in_memory() -> Self
pub fn in_memory() -> Self
An empty MemoryStores behind every reader.
Sourcepub fn builder() -> ReadOnlyStoresBuilder
pub fn builder() -> ReadOnlyStoresBuilder
A builder that requires every reader to be supplied.
Sourcepub fn conversations(&self) -> &Arc<dyn ConversationReader> ⓘ
pub fn conversations(&self) -> &Arc<dyn ConversationReader> ⓘ
Conversations, turns and phase markers.
Sourcepub fn interactions(&self) -> &Arc<dyn InteractionReader> ⓘ
pub fn interactions(&self) -> &Arc<dyn InteractionReader> ⓘ
Persisted interactions.
Sourcepub fn journal(&self) -> &Arc<dyn CommandJournalReader> ⓘ
pub fn journal(&self) -> &Arc<dyn CommandJournalReader> ⓘ
The command journal.
Sourcepub fn events(&self) -> &Arc<dyn EventJournalReader> ⓘ
pub fn events(&self) -> &Arc<dyn EventJournalReader> ⓘ
The claim ledger.
Sourcepub fn outbox(&self) -> &Arc<dyn OutboxReader> ⓘ
pub fn outbox(&self) -> &Arc<dyn OutboxReader> ⓘ
The external-effect outbox.
Sourcepub fn replay(&self) -> &Arc<dyn ReplayReader> ⓘ
pub fn replay(&self) -> &Arc<dyn ReplayReader> ⓘ
Replay records.
Trait Implementations§
Source§impl Clone for ReadOnlyStores
impl Clone for ReadOnlyStores
Source§impl Debug for ReadOnlyStores
impl Debug for ReadOnlyStores
Auto Trait Implementations§
impl !RefUnwindSafe for ReadOnlyStores
impl !UnwindSafe for ReadOnlyStores
impl Freeze for ReadOnlyStores
impl Send for ReadOnlyStores
impl Sync for ReadOnlyStores
impl Unpin for ReadOnlyStores
impl UnsafeUnpin for ReadOnlyStores
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