pub struct PrefixCacheConfig {
pub max_prefixes: usize,
pub min_prefix_length: usize,
pub prefix_ttl_seconds: u64,
pub enable_cross_request_sharing: bool,
}Expand description
Prefix caching configuration
Fields§
§max_prefixes: usizeMaximum number of prefixes to cache
min_prefix_length: usizeMinimum prefix length to be eligible for caching
prefix_ttl_seconds: u64TTL for cached prefixes
enable_cross_request_sharing: boolEnable cross-request prefix sharing
Trait Implementations§
Source§impl Clone for PrefixCacheConfig
impl Clone for PrefixCacheConfig
Source§fn clone(&self) -> PrefixCacheConfig
fn clone(&self) -> PrefixCacheConfig
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 PrefixCacheConfig
impl Debug for PrefixCacheConfig
Source§impl<'de> Deserialize<'de> for PrefixCacheConfig
impl<'de> Deserialize<'de> for PrefixCacheConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PrefixCacheConfig
impl RefUnwindSafe for PrefixCacheConfig
impl Send for PrefixCacheConfig
impl Sync for PrefixCacheConfig
impl Unpin for PrefixCacheConfig
impl UnsafeUnpin for PrefixCacheConfig
impl UnwindSafe for PrefixCacheConfig
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