pub struct MemoryEstimate {
pub max_entries: usize,
pub estimated_max_usage_mb: f64,
pub configured_limit_mb: f64,
pub effective_limit_mb: f64,
pub cleanup_trigger_mb: f64,
}Expand description
Memory usage estimation
Fields§
§max_entries: usizeMaximum number of entries
estimated_max_usage_mb: f64Estimated maximum memory usage (MB)
configured_limit_mb: f64Configured memory limit (MB)
effective_limit_mb: f64Effective memory limit (MB)
cleanup_trigger_mb: f64Cleanup trigger threshold (MB)
Implementations§
Source§impl MemoryEstimate
impl MemoryEstimate
Sourcepub fn is_reasonable(&self) -> bool
pub fn is_reasonable(&self) -> bool
Check if the configuration is reasonable
Sourcepub fn get_recommendations(&self) -> Vec<String>
pub fn get_recommendations(&self) -> Vec<String>
Get configuration recommendations
Trait Implementations§
Source§impl Clone for MemoryEstimate
impl Clone for MemoryEstimate
Source§fn clone(&self) -> MemoryEstimate
fn clone(&self) -> MemoryEstimate
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 moreAuto Trait Implementations§
impl Freeze for MemoryEstimate
impl RefUnwindSafe for MemoryEstimate
impl Send for MemoryEstimate
impl Sync for MemoryEstimate
impl Unpin for MemoryEstimate
impl UnwindSafe for MemoryEstimate
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