pub struct NewEvents<E>where
E: Event,{ /* private fields */ }Expand description
Collection of new events produced by a command.
This type represents the output of CommandLogic::handle() - the
events that should be persisted as a result of command execution.
Per ADR-012, this works with domain event types that implement the Event trait.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for NewEvents<E>
impl<E> RefUnwindSafe for NewEvents<E>where
E: RefUnwindSafe,
impl<E> Send for NewEvents<E>
impl<E> Sync for NewEvents<E>where
E: Sync,
impl<E> Unpin for NewEvents<E>where
E: Unpin,
impl<E> UnsafeUnpin for NewEvents<E>
impl<E> UnwindSafe for NewEvents<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