[][src]Trait cqrs_core::SnapshotStrategy

pub trait SnapshotStrategy {
    fn snapshot_recommendation(
        &self,
        version: Version,
        last_snapshot_version: Option<Version>
    ) -> SnapshotRecommendation; }

A strategy determining when to recommend a snapshot be taken.

Required methods

fn snapshot_recommendation(
    &self,
    version: Version,
    last_snapshot_version: Option<Version>
) -> SnapshotRecommendation

Gives the sink's recommendation on whether or not to perform a snapshot

Loading content...

Implementors

impl SnapshotStrategy for AlwaysSnapshot[src]

impl SnapshotStrategy for NeverSnapshot[src]

Loading content...