pub struct EventSourcedEntity<E>(/* private fields */)
where
E: EventSourced;Expand description
An EventSourcedEntity which can be spawned.
Implementations§
Source§impl<E> EventSourcedEntity<E>where
E: EventSourced,
impl<E> EventSourcedEntity<E>where
E: EventSourced,
Sourcepub async fn spawn<L, S, B>(
self,
id: E::Id,
snapshot_after: Option<NonZeroU64>,
command_buffer: NonZeroUsize,
event_log: L,
snapshot_store: S,
binarize: B,
) -> Result<EntityRef<E>, SpawnError>
pub async fn spawn<L, S, B>( self, id: E::Id, snapshot_after: Option<NonZeroU64>, command_buffer: NonZeroUsize, event_log: L, snapshot_store: S, binarize: B, ) -> Result<EntityRef<E>, SpawnError>
Spawn this EventSourcedEntity with the given ID, settings, event log, snapshot store and
Binarize functions.
Trait Implementations§
Source§impl<E> Clone for EventSourcedEntity<E>where
E: EventSourced + Clone,
impl<E> Clone for EventSourcedEntity<E>where
E: EventSourced + Clone,
Source§fn clone(&self) -> EventSourcedEntity<E>
fn clone(&self) -> EventSourcedEntity<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<E> Freeze for EventSourcedEntity<E>where
E: Freeze,
impl<E> RefUnwindSafe for EventSourcedEntity<E>where
E: RefUnwindSafe,
impl<E> Send for EventSourcedEntity<E>
impl<E> Sync for EventSourcedEntity<E>
impl<E> Unpin for EventSourcedEntity<E>where
E: Unpin,
impl<E> UnwindSafe for EventSourcedEntity<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