pub struct SizeThresholds {
pub warn_threshold: usize,
pub error_threshold: usize,
}Expand description
Checkpoint size thresholds in bytes.
Fields§
§warn_threshold: usizeWarning threshold in bytes (default: 1.5 MiB)
error_threshold: usizeError threshold in bytes (default: 2 MiB)
Implementations§
Source§impl SizeThresholds
impl SizeThresholds
Sourcepub const DEFAULT: Self
pub const DEFAULT: Self
Default thresholds based on performance baselines.
§Rationale
- Default execution history limit: 1000 entries
- Measured checkpoint size: ~363 KB for 1000 entries
- Warning threshold: 1.5 MiB (4x baseline, allows growth headroom)
- Error threshold: 2 MiB (hard limit enforced by CI)
Trait Implementations§
Source§impl Clone for SizeThresholds
impl Clone for SizeThresholds
Source§fn clone(&self) -> SizeThresholds
fn clone(&self) -> SizeThresholds
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 SizeThresholds
impl Debug for SizeThresholds
Auto Trait Implementations§
impl Freeze for SizeThresholds
impl RefUnwindSafe for SizeThresholds
impl Send for SizeThresholds
impl Sync for SizeThresholds
impl Unpin for SizeThresholds
impl UnsafeUnpin for SizeThresholds
impl UnwindSafe for SizeThresholds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more