[][src]Enum actor_es::Event

pub enum Event<T: Model> {
    Create(T),
    Change(EntityId, T::Change),
}

Events are changes to the system generated by entities after processing other events or external commands

Variants

Create(T)
Change(EntityId, T::Change)

Implementations

impl<T: Model> Event<T>[src]

pub fn entity_id(&self) -> EntityId[src]

pub fn entity(&self) -> Option<T>[src]

pub fn change(&self) -> Option<T::Change>[src]

Trait Implementations

impl<T: Clone + Model> Clone for Event<T> where
    T::Change: Clone
[src]

impl<T: Debug + Model> Debug for Event<T> where
    T::Change: Debug
[src]

impl<T: Model> From<(EntityId, <T as Model>::Change)> for Event<T>[src]

impl<T: Model> From<Event<T>> for StoreMsg<T>[src]

impl<T: Model> From<Event<T>> for Commit<T>[src]

impl<T: Model> From<T> for Event<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Event<T> where
    T: RefUnwindSafe,
    <T as Model>::Change: RefUnwindSafe

impl<T> Send for Event<T> where
    <T as Model>::Change: Send

impl<T> Sync for Event<T> where
    T: Sync,
    <T as Model>::Change: Sync

impl<T> Unpin for Event<T> where
    T: Unpin,
    <T as Model>::Change: Unpin

impl<T> UnwindSafe for Event<T> where
    T: UnwindSafe,
    <T as Model>::Change: UnwindSafe

Blanket Implementations

impl<T> ActorArgs for T where
    T: 'static + Clone + Send + Sync
[src]

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<!> for T[src]

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

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

impl<T> Message for T where
    T: 'static + Clone + Send + Debug
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,