pub struct PaneRetentionDecision {
pub strategy: PaneMemoryStrategy,
pub budget: PaneRetentionBudget,
pub conservative_debug: bool,
pub units_before: usize,
pub units_after: usize,
pub units_pruned: usize,
pub bytes_before: usize,
pub bytes_after: usize,
pub current_state_hash: u64,
pub outcome: PaneRetentionOutcome,
pub log: String,
}Expand description
Serializable record of one PaneRetentionPolicy application.
Fields§
§strategy: PaneMemoryStrategyWhich retained-state substrate the policy was applied to.
budget: PaneRetentionBudgetThe budget that was enforced.
conservative_debug: boolWhether conservative-debug mode was in effect.
units_before: usizeRetained units before the decision.
units_after: usizeRetained units after the decision.
units_pruned: usizeUnits pruned (units_before - units_after).
bytes_before: usizeModeled retained bytes before the decision.
bytes_after: usizeModeled retained bytes after the decision.
current_state_hash: u64The current-state hash, preserved across the decision (proof that pruning discarded only history, never the live state).
outcome: PaneRetentionOutcomeThe classified outcome.
log: StringHuman-readable one-line log.
Trait Implementations§
Source§impl Clone for PaneRetentionDecision
impl Clone for PaneRetentionDecision
Source§fn clone(&self) -> PaneRetentionDecision
fn clone(&self) -> PaneRetentionDecision
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 moreSource§impl Debug for PaneRetentionDecision
impl Debug for PaneRetentionDecision
Source§impl PartialEq for PaneRetentionDecision
impl PartialEq for PaneRetentionDecision
Source§fn eq(&self, other: &PaneRetentionDecision) -> bool
fn eq(&self, other: &PaneRetentionDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneRetentionDecision
impl Serialize for PaneRetentionDecision
impl StructuralPartialEq for PaneRetentionDecision
Auto Trait Implementations§
impl Freeze for PaneRetentionDecision
impl RefUnwindSafe for PaneRetentionDecision
impl Send for PaneRetentionDecision
impl Sync for PaneRetentionDecision
impl Unpin for PaneRetentionDecision
impl UnsafeUnpin for PaneRetentionDecision
impl UnwindSafe for PaneRetentionDecision
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