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