pub enum CheckpointSeverityRung {
Info,
Warn,
Alarm,
}Expand description
ADR-091 graduated severity rung for sustained WAL pressure.
Alarm is never produced by CheckpointSeverityState::observe_wal_pages
— it labels the existing TRUNCATE-escalation tier (maybe_truncate),
which is gated on its own threshold/interval state, not on this ladder.
It exists here so callers and tests can name all three rungs uniformly.
Variants§
Info
First observed tick crossing warn_pages after a below-warn tick.
Warn
warn_sustained_cycles consecutive observed ticks at/above
warn_pages; edge-triggered once per elevation episode.
Alarm
The TRUNCATE-escalation tier (checkpoint_high_water_pages and
above); never emitted by observe_wal_pages.
Trait Implementations§
Source§impl Clone for CheckpointSeverityRung
impl Clone for CheckpointSeverityRung
Source§fn clone(&self) -> CheckpointSeverityRung
fn clone(&self) -> CheckpointSeverityRung
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 CheckpointSeverityRung
Source§impl Debug for CheckpointSeverityRung
impl Debug for CheckpointSeverityRung
impl Eq for CheckpointSeverityRung
Source§impl PartialEq for CheckpointSeverityRung
impl PartialEq for CheckpointSeverityRung
impl StructuralPartialEq for CheckpointSeverityRung
Auto Trait Implementations§
impl Freeze for CheckpointSeverityRung
impl RefUnwindSafe for CheckpointSeverityRung
impl Send for CheckpointSeverityRung
impl Sync for CheckpointSeverityRung
impl Unpin for CheckpointSeverityRung
impl UnsafeUnpin for CheckpointSeverityRung
impl UnwindSafe for CheckpointSeverityRung
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