[][src]Struct actor_es::Commit

pub struct Commit<T: Model> { /* fields omitted */ }

Commit represents a unique inmutable change to the system made by someone at a specific time

Implementations

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

pub fn new(event: Event<T>, who: Option<String>, why: Option<String>) -> Self[src]

Methods from Deref<Target = Event<T>>

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

impl<T: Debug + Model> Debug for Commit<T>[src]

impl<T: Model> Deref for Commit<T>[src]

type Target = Event<T>

The resulting type after dereferencing.

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

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

impl<M, S> Receive<Commit<M>> for Store<M, S> where
    M: Model,
    S: CommitStore<M>, 
[src]

type Msg = StoreMsg<M>

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for Commit<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<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>,