[−][src]Struct actor_es::Store
An actor that handles the persistance of changes of an entity using "commits" to track who made the change and why.
Trait Implementations
impl<M, S> Actor for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
type Msg = StoreMsg<M>
fn recv(&mut self, cx: &Context<Self::Msg>, msg: Self::Msg, sender: Sender)
[src]
fn pre_start(&mut self, ctx: &Context<Self::Msg>)
[src]
fn post_start(&mut self, ctx: &Context<Self::Msg>)
[src]
fn post_stop(&mut self)
[src]
fn supervisor_strategy(&self) -> Strategy
[src]
fn sys_recv(
&mut self,
ctx: &Context<Self::Msg>,
msg: SystemMsg,
sender: Option<BasicActorRef>
)
[src]
&mut self,
ctx: &Context<Self::Msg>,
msg: SystemMsg,
sender: Option<BasicActorRef>
)
impl<M, S> ActorFactoryArgs<(S, ActorRef<ChannelMsg<Event<M>>>)> for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
fn create_args((backend, bus): (S, EventBus<M>)) -> Self
[src]
impl<M, S> ActorFactoryArgs<S> for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
fn create_args(backend: S) -> Self
[src]
impl<M: Debug + Model, S: Debug + CommitStore<M>> Debug for Store<M, S>
[src]
impl<M, S> Receive<(EntityId, DateTime<Utc>)> for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
type Msg = StoreMsg<M>
fn receive(
&mut self,
cx: &Context<Self::Msg>,
(id, until): (EntityId, DateTime<Utc>),
sender: Sender
)
[src]
&mut self,
cx: &Context<Self::Msg>,
(id, until): (EntityId, DateTime<Utc>),
sender: Sender
)
impl<M, S> Receive<Commit<M>> for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
type Msg = StoreMsg<M>
fn receive(&mut self, cx: &Context<Self::Msg>, c: Commit<M>, _sender: Sender)
[src]
impl<M, S> Receive<DateTime<Utc>> for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
type Msg = StoreMsg<M>
fn receive(
&mut self,
cx: &Context<Self::Msg>,
until: DateTime<Utc>,
sender: Sender
)
[src]
&mut self,
cx: &Context<Self::Msg>,
until: DateTime<Utc>,
sender: Sender
)
impl<M, S> Receive<EntityId> for Store<M, S> where
M: Model,
S: CommitStore<M>,
[src]
M: Model,
S: CommitStore<M>,
Auto Trait Implementations
impl<M, S> !RefUnwindSafe for Store<M, S>
impl<M, S> Send for Store<M, S> where
<M as Model>::Change: Clone + Debug + Send,
<M as Model>::Change: Clone + Debug + Send,
impl<M, S> Sync for Store<M, S> where
<M as Model>::Change: Clone + Debug + Send,
<M as Model>::Change: Clone + Debug + Send,
impl<M, S> Unpin for Store<M, S> where
S: Unpin,
S: Unpin,
impl<M, S> !UnwindSafe for Store<M, S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,