pub struct Producer<S: StoreEngine + Send + Sync> { /* private fields */ }Implementations§
source§impl<S: StoreEngine + Send + Sync> Producer<S>
impl<S: StoreEngine + Send + Sync> Producer<S>
pub fn publish<A: Aggregate, I: Into<String>>( &self, id: I, events: Vec<Event>, original_version: i32 ) -> Pin<Box<dyn Future<Output = Result<Vec<Event>, StoreError>> + Send + '_>>
pub fn load<A: Aggregate, I: Into<String>>( &self, id: I ) -> Pin<Box<dyn Future<Output = StoreEngineResult<A>> + Send + '_>>
Trait Implementations§
Auto Trait Implementations§
impl<S> RefUnwindSafe for Producer<S>where S: RefUnwindSafe,
impl<S> Send for Producer<S>
impl<S> Sync for Producer<S>
impl<S> Unpin for Producer<S>where S: Unpin,
impl<S> UnwindSafe for Producer<S>where S: 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