Struct cqrs_eventsourcing::CQRS [−][src]
Implementations
impl<A, E, ES> CQRS<A, E, ES> where
A: Aggregate,
E: DomainEvent<A>,
ES: Store<A, E>,
[src]
A: Aggregate,
E: DomainEvent<A>,
ES: Store<A, E>,
pub fn new(store: ES, handlers: Handlers<A, E>) -> CQRS<A, E, ES>
[src]
pub async fn execute<C: Command<A, E>>(
&mut self,
command: C,
meta: MetaData
) -> Result<(), Error>
[src]
&mut self,
command: C,
meta: MetaData
) -> Result<(), Error>
Auto Trait Implementations
impl<A, E, ES> !RefUnwindSafe for CQRS<A, E, ES>
impl<A, E, ES> Send for CQRS<A, E, ES>
impl<A, E, ES> !Sync for CQRS<A, E, ES>
impl<A, E, ES> Unpin for CQRS<A, E, ES> where
A: Unpin,
E: Unpin,
ES: Unpin,
A: Unpin,
E: Unpin,
ES: Unpin,
impl<A, E, ES> !UnwindSafe for CQRS<A, E, ES>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,