Struct evento_store::EventStore
source · pub struct EventStore<E: Engine>(/* private fields */);Trait Implementations§
source§impl<E: Clone + Engine> Clone for EventStore<E>
impl<E: Clone + Engine> Clone for EventStore<E>
source§fn clone(&self) -> EventStore<E>
fn clone(&self) -> EventStore<E>
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 moresource§impl<E: Engine> Engine for EventStore<E>
impl<E: Engine> Engine for EventStore<E>
fn save<A: Aggregate, I: Into<String>>( &self, id: I, events: Vec<Event>, original_version: i32 ) -> Pin<Box<dyn Future<Output = Result<Vec<Event>, Error>> + Send + '_>>
fn load<A: Aggregate, I: Into<String>>( &self, id: I ) -> Pin<Box<dyn Future<Output = EngineResult<A>> + Send + '_>>
fn read_all<F: Serialize>( &self, first: usize, after: Option<Uuid>, filters: Option<Vec<F>> ) -> Pin<Box<dyn Future<Output = Result<Vec<Event>, Error>> + Send + '_>>
fn get<A: Aggregate, I: Into<String>>( &self, id: I ) -> Pin<Box<dyn Future<Output = Result<Option<Event>, Error>> + Send + '_>>
fn get_last( &self ) -> Pin<Box<dyn Future<Output = Result<Option<Event>, Error>> + Send + '_>>
Auto Trait Implementations§
impl<E> RefUnwindSafe for EventStore<E>where E: RefUnwindSafe,
impl<E> Send for EventStore<E>where E: Send,
impl<E> Sync for EventStore<E>where E: Sync,
impl<E> Unpin for EventStore<E>where E: Unpin,
impl<E> UnwindSafe for EventStore<E>where E: UnwindSafe,
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