pub enum SnapshotUse {
Applicable,
Stale,
Inapplicable,
}Expand description
English:
Aggregate-defined snapshot classification used by crate::replay_with_optional_snapshot.
Both Stale and Inapplicable trigger full replay; an older but usable snapshot may be Applicable.
日本語:
crate::replay_with_optional_snapshot で使う集約定義のスナップショット分類です。
Stale と Inapplicable は全件再生を選択します。古くても利用可能なら Applicable にできます。
Variants§
Applicable
English:
Restore this snapshot and replay only later events.
日本語:
このスナップショットを復元し、後続イベントのみ再生します。
Stale
English:
Reject this snapshot as stale and replay the complete history.
日本語:
古いスナップショットとして採用せず、完全な履歴を再生します。
Inapplicable
English:
Reject this snapshot as incompatible and replay the complete history.
日本語:
互換性のないスナップショットとして採用せず、完全な履歴を再生します。
Trait Implementations§
Source§impl Clone for SnapshotUse
impl Clone for SnapshotUse
Source§fn clone(&self) -> SnapshotUse
fn clone(&self) -> SnapshotUse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SnapshotUse
Source§impl Debug for SnapshotUse
impl Debug for SnapshotUse
impl Eq for SnapshotUse
Source§impl PartialEq for SnapshotUse
impl PartialEq for SnapshotUse
impl StructuralPartialEq for SnapshotUse
Auto Trait Implementations§
impl Freeze for SnapshotUse
impl RefUnwindSafe for SnapshotUse
impl Send for SnapshotUse
impl Sync for SnapshotUse
impl Unpin for SnapshotUse
impl UnsafeUnpin for SnapshotUse
impl UnwindSafe for SnapshotUse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more