pub struct CompressionOutcome {
pub messages: Vec<Message>,
pub threshold_level: ThresholdLevel,
pub percent_left: u32,
pub success: bool,
pub error: Option<String>,
pub circuit_breaker_tripped: bool,
}Expand description
Result of compression with metadata.
Fields§
§messages: Vec<Message>Compressed messages.
threshold_level: ThresholdLevelThreshold level before compression.
percent_left: u32Percentage of context remaining after compression.
success: boolWhether compression succeeded.
error: Option<String>Error message if failed.
circuit_breaker_tripped: boolCircuit breaker tripped.
Auto Trait Implementations§
impl Freeze for CompressionOutcome
impl RefUnwindSafe for CompressionOutcome
impl Send for CompressionOutcome
impl Sync for CompressionOutcome
impl Unpin for CompressionOutcome
impl UnsafeUnpin for CompressionOutcome
impl UnwindSafe for CompressionOutcome
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