#[non_exhaustive]pub enum SnapshotPolicy {
Periodic {
every: u64,
},
Manual,
}Expand description
Snapshot retention / cadence policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Periodic
Snapshot every every events.
Manual
Never snapshot automatically — the actor controls timing.
Trait Implementations§
Source§impl Clone for SnapshotPolicy
impl Clone for SnapshotPolicy
Source§fn clone(&self) -> SnapshotPolicy
fn clone(&self) -> SnapshotPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotPolicy
impl Debug for SnapshotPolicy
Source§impl Default for SnapshotPolicy
impl Default for SnapshotPolicy
Source§impl PartialEq for SnapshotPolicy
impl PartialEq for SnapshotPolicy
impl Copy for SnapshotPolicy
impl Eq for SnapshotPolicy
impl StructuralPartialEq for SnapshotPolicy
Auto Trait Implementations§
impl Freeze for SnapshotPolicy
impl RefUnwindSafe for SnapshotPolicy
impl Send for SnapshotPolicy
impl Sync for SnapshotPolicy
impl Unpin for SnapshotPolicy
impl UnsafeUnpin for SnapshotPolicy
impl UnwindSafe for SnapshotPolicy
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