pub struct MemoConfig {
pub max_entries: usize,
pub enabled: bool,
}Expand description
Configuration for the memoized transport.
Fields§
§max_entries: usizeMaximum number of cached entries before LRU eviction kicks in.
enabled: boolWhether caching is enabled. When false, all calls pass through.
Trait Implementations§
Source§impl Clone for MemoConfig
impl Clone for MemoConfig
Source§fn clone(&self) -> MemoConfig
fn clone(&self) -> MemoConfig
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 MemoConfig
impl Debug for MemoConfig
Auto Trait Implementations§
impl Freeze for MemoConfig
impl RefUnwindSafe for MemoConfig
impl Send for MemoConfig
impl Sync for MemoConfig
impl Unpin for MemoConfig
impl UnsafeUnpin for MemoConfig
impl UnwindSafe for MemoConfig
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