[][src]Enum riker_es::Event

pub enum Event<T: Aggregate> {
    Create(T),
    Update(EntityId, T::Update),
}

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

Variants

Create(T)
Update(EntityId, T::Update)

Implementations

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

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

Trait Implementations

impl<T: Clone + Aggregate> Clone for Event<T> where
    T::Update: Clone
[src]

impl<T: Debug + Aggregate> Debug for Event<T> where
    T::Update: Debug
[src]

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

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

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

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

Auto Trait Implementations

impl<T> RefUnwindSafe for Event<T> where
    T: RefUnwindSafe,
    <T as Aggregate>::Update: RefUnwindSafe

impl<T> Send for Event<T> where
    <T as Aggregate>::Update: Send

impl<T> Sync for Event<T> where
    T: Sync,
    <T as Aggregate>::Update: Sync

impl<T> Unpin for Event<T> where
    T: Unpin,
    <T as Aggregate>::Update: Unpin

impl<T> UnwindSafe for Event<T> where
    T: UnwindSafe,
    <T as Aggregate>::Update: 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>,