Trait causality::Effect[][src]

pub trait Effect {
    type Version;
    type Key;
    fn version(&self) -> Self::Version;
fn key(&self) -> Self::Key; }

Event produced from Actor handling Cause.

Implemented for events produced by Actors handling Causes.

Expected that Effects are applied to Actors or Aggregates to represent state.

Associated Types

type Version[src]

Schema version use to maintain backwards compatibility.

type Key[src]

Unique key used for idempotency (duplicate detection).

Loading content...

Required methods

fn version(&self) -> Self::Version[src]

Returns version.

fn key(&self) -> Self::Key[src]

Returns unique key.

Loading content...

Implementors

Loading content...