pub enum CompressionPlanError {
ExposureGateNotMet {
usage_percent: f64,
trigger_percent: u8,
},
NoActiveMessages,
NotEnoughMessages {
non_system_count: usize,
},
NothingToCompress {
anchor_index: usize,
non_system_count: usize,
},
}Expand description
Structured reason why a compression plan could not be built.
Variants§
ExposureGateNotMet
The exposure gate (threshold not reached) prevented building.
NoActiveMessages
No active messages in the session.
NotEnoughMessages
Not enough non-system messages to compress (need >=3).
NothingToCompress
Nothing to compress after anchor/keep splitting.
Trait Implementations§
Source§impl Clone for CompressionPlanError
impl Clone for CompressionPlanError
Source§fn clone(&self) -> CompressionPlanError
fn clone(&self) -> CompressionPlanError
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 CompressionPlanError
impl Debug for CompressionPlanError
Auto Trait Implementations§
impl Freeze for CompressionPlanError
impl RefUnwindSafe for CompressionPlanError
impl Send for CompressionPlanError
impl Sync for CompressionPlanError
impl Unpin for CompressionPlanError
impl UnsafeUnpin for CompressionPlanError
impl UnwindSafe for CompressionPlanError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.