pub trait EntityOps<B>where
    B: EventSourcedBehavior,{
    // Required methods
    fn get(&mut self, entity_id: &EntityId) -> Option<&B::State>;
    fn update(&mut self, envelope: EventEnvelope<B::Event>) -> u64;
}
Expand description

An internal structure for the purposes of operating on the cache of entities.

Required Methods§

source

fn get(&mut self, entity_id: &EntityId) -> Option<&B::State>

source

fn update(&mut self, envelope: EventEnvelope<B::Event>) -> u64

Implementors§