pub struct CleanupParameters {
pub interval: Duration,
pub batch_size: usize,
pub aggressive: bool,
pub utilization: f64,
pub message_rate: f64,
pub reason: CleanupReason,
}Expand description
Tuned cleanup parameters.
Fields§
§interval: DurationRecommended interval until next cleanup.
batch_size: usizeRecommended batch size per shard.
aggressive: boolWhether aggressive cleanup is recommended.
utilization: f64The utilization level that triggered these parameters.
message_rate: f64Current message rate (messages per second).
reason: CleanupReasonReason for these parameters.
Implementations§
Source§impl CleanupParameters
impl CleanupParameters
Sourcepub fn should_cleanup_now(&self) -> bool
pub fn should_cleanup_now(&self) -> bool
Check if immediate cleanup is recommended.
Sourcepub fn backpressure_hint(&self) -> BackpressureHint
pub fn backpressure_hint(&self) -> BackpressureHint
Get backpressure hint if applicable.
Trait Implementations§
Source§impl Clone for CleanupParameters
impl Clone for CleanupParameters
Source§fn clone(&self) -> CleanupParameters
fn clone(&self) -> CleanupParameters
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 CleanupParameters
impl Debug for CleanupParameters
impl Copy for CleanupParameters
Auto Trait Implementations§
impl Freeze for CleanupParameters
impl RefUnwindSafe for CleanupParameters
impl Send for CleanupParameters
impl Sync for CleanupParameters
impl Unpin for CleanupParameters
impl UnwindSafe for CleanupParameters
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> 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