solana_runtime/snapshot_utils/
snapshot_interval.rs

1use std::num::NonZeroU64;
2
3/// The interval in between taking snapshots
4#[derive(Debug, Copy, Clone, Eq, PartialEq)]
5pub enum SnapshotInterval {
6    /// Snapshots are disabled
7    Disabled,
8    /// Snapshots are taken every this many slots
9    Slots(NonZeroU64),
10}