pub struct RollingCondenser {
pub max_messages: usize,
pub preserve_system: bool,
}Expand description
Keeps only the most recent N messages, optionally preserving the system message.
Fields§
§max_messages: usize§preserve_system: boolImplementations§
Trait Implementations§
Source§impl Condenser for RollingCondenser
impl Condenser for RollingCondenser
Auto Trait Implementations§
impl Freeze for RollingCondenser
impl RefUnwindSafe for RollingCondenser
impl Send for RollingCondenser
impl Sync for RollingCondenser
impl Unpin for RollingCondenser
impl UnsafeUnpin for RollingCondenser
impl UnwindSafe for RollingCondenser
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