pub struct ResourceConfig {
pub max_memory_bytes: u64,
pub max_keys: usize,
pub memory_threshold_percent: u8,
pub buffer_overflow_threshold: usize,
pub cleanup_interval: Duration,
pub emergency_cleanup_threshold: u8,
}Expand description
Resource management configuration
Fields§
§max_memory_bytes: u64Maximum memory usage in bytes
max_keys: usizeMaximum number of active keys/streams
memory_threshold_percent: u8Memory threshold for circuit breaker (percentage of max_memory)
buffer_overflow_threshold: usizeBuffer overflow threshold
cleanup_interval: DurationCleanup interval
emergency_cleanup_threshold: u8Emergency cleanup trigger threshold (percentage of max_memory)
Trait Implementations§
Source§impl Clone for ResourceConfig
impl Clone for ResourceConfig
Source§fn clone(&self) -> ResourceConfig
fn clone(&self) -> ResourceConfig
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 ResourceConfig
impl Debug for ResourceConfig
Auto Trait Implementations§
impl Freeze for ResourceConfig
impl RefUnwindSafe for ResourceConfig
impl Send for ResourceConfig
impl Sync for ResourceConfig
impl Unpin for ResourceConfig
impl UnwindSafe for ResourceConfig
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