[][src]Struct actor_es::Entity

pub struct Entity<E: ES, S: CommitStore<E::Model>> { /* fields omitted */ }

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]

type Msg = CQRS<E::Cmd>

impl<E, S, Args> ActorFactoryArgs<(S, Args)> for Entity<E, S> where
    Args: ActorArgs,
    E: ES<Args = Args>,
    S: CommitStore<E::Model>, 
[src]

impl<E, S> Receive<Query> for Entity<E, S> where
    E: ES,
    S: CommitStore<E::Model>, 
[src]

type Msg = CQRS<E::Cmd>

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

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

impl<E, S> Unpin for Entity<E, S> where
    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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,