[−][src]Trait cqrs::SnapshotStrategy
A strategy determining when to recommend a snapshot be taken.
Required methods
fn snapshot_recommendation(
&self,
version: Version,
last_snapshot_version: Option<Version>
) -> SnapshotRecommendation
&self,
version: Version,
last_snapshot_version: Option<Version>
) -> SnapshotRecommendation
Gives the sink's recommendation on whether or not to perform a snapshot
Implementors
impl SnapshotStrategy for AlwaysSnapshot
[src]
fn snapshot_recommendation(
&self,
Version,
Option<Version>
) -> SnapshotRecommendation
[src]
&self,
Version,
Option<Version>
) -> SnapshotRecommendation
impl SnapshotStrategy for NeverSnapshot
[src]
fn snapshot_recommendation(
&self,
Version,
Option<Version>
) -> SnapshotRecommendation
[src]
&self,
Version,
Option<Version>
) -> SnapshotRecommendation