pub struct WorkingMemoryConfig {
pub max_bytes: usize,
pub max_entries: usize,
pub default_ttl_ms: u64,
pub max_key_len: usize,
}Expand description
Configuration for working memory.
Fields§
§max_bytes: usizeMaximum total size in bytes
max_entries: usizeMaximum number of entries
default_ttl_ms: u64Default TTL in milliseconds
max_key_len: usizeMaximum key length
Trait Implementations§
Source§impl Clone for WorkingMemoryConfig
impl Clone for WorkingMemoryConfig
Source§fn clone(&self) -> WorkingMemoryConfig
fn clone(&self) -> WorkingMemoryConfig
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 WorkingMemoryConfig
impl Debug for WorkingMemoryConfig
Auto Trait Implementations§
impl Freeze for WorkingMemoryConfig
impl RefUnwindSafe for WorkingMemoryConfig
impl Send for WorkingMemoryConfig
impl Sync for WorkingMemoryConfig
impl Unpin for WorkingMemoryConfig
impl UnwindSafe for WorkingMemoryConfig
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