pub struct Stateless;Expand description
A struct representing a stateless aggregate.
Trait Implementations§
Source§impl<E> AggregateState<E> for Stateless
Implementation of the AggregateState trait for the Stateless struct.
impl<E> AggregateState<E> for Stateless
Implementation of the AggregateState trait for the Stateless struct.
This implementation does not modify the state when an event is applied.
Source§fn apply_event(self, _event: E) -> Self
fn apply_event(self, _event: E) -> Self
Applies an event to the current state and returns the new state. Read more
Auto Trait Implementations§
impl Freeze for Stateless
impl RefUnwindSafe for Stateless
impl Send for Stateless
impl Sync for Stateless
impl Unpin for Stateless
impl UnwindSafe for Stateless
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