pub struct CqrsPattern<A>(/* private fields */);Expand description
Public, zero-sized handle to the CQRS pattern. Use
CqrsPattern::builder to start configuring an instance.
Implementations§
Source§impl<A> CqrsPattern<A>where
A: AggregateRoot,
A::Command: Command<AggregateId = <A as AggregateRoot>::Id>,
A::Event: DomainEvent,
impl<A> CqrsPattern<A>where
A: AggregateRoot,
A::Command: Command<AggregateId = <A as AggregateRoot>::Id>,
A::Event: DomainEvent,
Sourcepub fn builder<J: Journal>(journal: Arc<J>) -> CqrsBuilder<A, J>
pub fn builder<J: Journal>(journal: Arc<J>) -> CqrsBuilder<A, J>
Start a fluent builder for a CQRS instance backed by journal.
The journal type J flows into the rest of the builder, so the
rest of the configuration is type-checked. Call
CqrsBuilder::factory, CqrsBuilder::read_journal (if you
want readers), and CqrsBuilder::build to obtain a
CqrsTopology.
Auto Trait Implementations§
impl<A> Freeze for CqrsPattern<A>
impl<A> RefUnwindSafe for CqrsPattern<A>where
A: RefUnwindSafe,
impl<A> Send for CqrsPattern<A>where
A: Send,
impl<A> Sync for CqrsPattern<A>where
A: Sync,
impl<A> Unpin for CqrsPattern<A>where
A: Unpin,
impl<A> UnsafeUnpin for CqrsPattern<A>
impl<A> UnwindSafe for CqrsPattern<A>where
A: 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