[−][src]Struct actor_es::Entity
Entity is an actor that handles user commands running the buissiness logic defined in the handler callback and "commit" changes of the model to the configured event store. Will also use the store to query a stored entity data applying any change that has been recorded up to the specified moment in time.
Trait Implementations
impl<E, S> Actor for Entity<E, S> where
E: ES,
S: CommitStore<E::Model>, [src]
E: ES,
S: CommitStore<E::Model>,
type Msg = CQRS<E::Cmd>
fn pre_start(&mut self, ctx: &Context<Self::Msg>)[src]
fn recv(&mut self, ctx: &Context<Self::Msg>, msg: Self::Msg, sender: Sender)[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<E, S, Args> ActorFactoryArgs<(S, Args)> for Entity<E, S> where
Args: ActorArgs,
E: ES<Args = Args>,
S: CommitStore<E::Model>, [src]
Args: ActorArgs,
E: ES<Args = Args>,
S: CommitStore<E::Model>,
fn create_args((store_backend, args): (S, Args)) -> Self[src]
impl<E, S> Receive<Query> for Entity<E, S> where
E: ES,
S: CommitStore<E::Model>, [src]
E: ES,
S: CommitStore<E::Model>,
Auto Trait Implementations
impl<E, S> !RefUnwindSafe for Entity<E, S>
impl<E, S> Send for Entity<E, S> where
<E as ES>::Args: Send,
<<E as ES>::Model as Model>::Change: Send,
<E as ES>::Model: Clone + Debug + Model + Send,
<E as ES>::Args: Send,
<<E as ES>::Model as Model>::Change: Send,
<E as ES>::Model: Clone + Debug + Model + Send,
impl<E, S> Sync for Entity<E, S> where
<E as ES>::Args: Sync,
<<E as ES>::Model as Model>::Change: Send,
<E as ES>::Model: Clone + Debug + Model + Send,
<E as ES>::Args: Sync,
<<E as ES>::Model as Model>::Change: Send,
<E as ES>::Model: Clone + Debug + Model + Send,
impl<E, S> Unpin for Entity<E, S> where
S: Unpin,
<E as ES>::Args: Unpin,
S: Unpin,
<E as ES>::Args: Unpin,
impl<E, S> !UnwindSafe for Entity<E, 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>,