pub struct Evento<E: Engine + Sync + Send, S: StoreEngine + Sync + Send> {
pub engine: E,
/* private fields */
}Fields§
§engine: EImplementations§
source§impl<E: Engine + Sync + Send + 'static, S: StoreEngine + Sync + Send + 'static> Evento<E, S>
impl<E: Engine + Sync + Send + 'static, S: StoreEngine + Sync + Send + 'static> Evento<E, S>
pub fn new(engine: E, store: EventStore<S>) -> Self
pub fn name<N: Into<String>>(self, name: N) -> Self
pub fn data<V: Send + Sync + 'static>(self, v: V) -> Self
pub fn subscribe(self, s: Subscriber) -> Self
pub fn load<A: Aggregate, I: Into<String>>( &self, id: I ) -> Pin<Box<dyn Future<Output = StoreEngineResult<A>> + Send + '_>>
pub async fn run(&self, delay: u64) -> Result<Producer<S>, StoreError>
Trait Implementations§
Auto Trait Implementations§
impl<E, S> !RefUnwindSafe for Evento<E, S>
impl<E, S> Send for Evento<E, S>
impl<E, S> Sync for Evento<E, S>
impl<E, S> Unpin for Evento<E, S>where E: Unpin, S: Unpin,
impl<E, S> !UnwindSafe for Evento<E, S>
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