Skip to main content

Projection

Trait Projection 

Source
pub trait Projection<E>: Default {
    // Required method
    fn apply(&mut self, event: &StoredEvent<E>) -> Result<()>;
}

Required Methods§

Source

fn apply(&mut self, event: &StoredEvent<E>) -> Result<()>

Applies one validated stored event.

§Errors

Returns domain-specific invariant violations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§