pub struct EventStore { /* private fields */ }Implementations§
Source§impl EventStore
impl EventStore
pub fn register_actor(&mut self, actor: Actor) -> Result<ActorId>
pub fn add_event(&mut self, actor: &ActorId, event: Event) -> Result<()>
pub fn all_events(&self) -> impl Iterator<Item = &Event>
pub fn events_for( &self, actor: &ActorId, ) -> Result<impl Iterator<Item = &Event>>
pub fn actors<'a>(&'a self) -> impl Iterator<Item = ActorId> + 'a
pub fn get_actor(&self, id: &ActorId) -> &Actor
Trait Implementations§
Source§impl Debug for EventStore
impl Debug for EventStore
Source§impl Default for EventStore
impl Default for EventStore
Source§impl<'de> Deserialize<'de> for EventStore
impl<'de> Deserialize<'de> for EventStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventStore
impl RefUnwindSafe for EventStore
impl Send for EventStore
impl Sync for EventStore
impl Unpin for EventStore
impl UnwindSafe for EventStore
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