Trait causality::Cause[][src]

pub trait Cause {
    type ActorId;
    type ActorVersion;
    fn actor_id(&self) -> Self::ActorId;
fn actor_version(&self) -> Self::ActorVersion; }

Action performed on Actor that is expected to produce Effects.

Implemented for actions handled by Actors.

Associated Types

type ActorId[src]

Unique Actor Id or aggregate key.

type ActorVersion[src]

Version of Actor handling Cause for ordering (optimistic concurrency or staleness).

Loading content...

Required methods

fn actor_id(&self) -> Self::ActorId[src]

Returns unique Actor Id.

fn actor_version(&self) -> Self::ActorVersion[src]

Returns Actor version.

Loading content...

Implementors

Loading content...