Struct thalo_message_store::MessageStore
source · pub struct MessageStore { /* private fields */ }
Implementations§
source§impl MessageStore
impl MessageStore
pub fn new(db: Db) -> Result<Self>
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn global_event_log(&self) -> Result<GlobalEventLog>
pub fn stream<'a>(&self, stream_name: StreamName<'a>) -> Result<Stream<'a>>
pub fn projection(&self, name: impl Into<String>) -> Result<Projection>
pub async fn flush_projections(&self) -> Result<usize>
pub fn outbox(&self, category: Category<'_>) -> Result<Outbox>
Trait Implementations§
source§impl Clone for MessageStore
impl Clone for MessageStore
source§fn clone(&self) -> MessageStore
fn clone(&self) -> MessageStore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MessageStore
impl Send for MessageStore
impl Sync for MessageStore
impl Unpin for MessageStore
impl !UnwindSafe for MessageStore
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