pub struct PruneConfig {
pub keep_last: usize,
pub dedupe_min_chars: usize,
pub summarize_min_chars: usize,
pub args_max_chars: usize,
pub arg_string_cap: usize,
}Expand description
Thresholds for the three prune passes. All sizes are in characters.
Fields§
§keep_last: usizeProtected tail: the last keep_last messages are never modified
(byte-identical in the output). “Aged” means anything before them.
dedupe_min_chars: usizePass 1 only collapses tool results strictly longer than this.
summarize_min_chars: usizePass 2 only summarizes tool results strictly longer than this.
args_max_chars: usizePass 3 only rewrites function.arguments whose serialized form is
strictly longer than this.
arg_string_cap: usizePer-string cap applied inside parsed argument structures by pass 3.
Values below [MIN_ARG_STRING_CAP] are raised to it.
Trait Implementations§
Source§impl Clone for PruneConfig
impl Clone for PruneConfig
Source§fn clone(&self) -> PruneConfig
fn clone(&self) -> PruneConfig
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 PruneConfig
impl Debug for PruneConfig
Auto Trait Implementations§
impl Freeze for PruneConfig
impl RefUnwindSafe for PruneConfig
impl Send for PruneConfig
impl Sync for PruneConfig
impl Unpin for PruneConfig
impl UnsafeUnpin for PruneConfig
impl UnwindSafe for PruneConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> 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