pub struct ColdCacheConfig {
pub max_size: HumanSize,
pub block_size: HumanSize,
pub readahead_blocks: usize,
}Expand description
Cold-read cache sizing.
Fields§
§max_size: HumanSizeMax cache size in bytes.
block_size: HumanSizeCache block size in bytes.
readahead_blocks: usizeNumber of blocks to read ahead on cache miss.
Trait Implementations§
Source§impl Clone for ColdCacheConfig
impl Clone for ColdCacheConfig
Source§fn clone(&self) -> ColdCacheConfig
fn clone(&self) -> ColdCacheConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColdCacheConfig
impl Debug for ColdCacheConfig
Source§impl Default for ColdCacheConfig
impl Default for ColdCacheConfig
Source§impl<'de> Deserialize<'de> for ColdCacheConfigwhere
ColdCacheConfig: Default,
impl<'de> Deserialize<'de> for ColdCacheConfigwhere
ColdCacheConfig: Default,
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
Source§impl PartialEq for ColdCacheConfig
impl PartialEq for ColdCacheConfig
Source§fn eq(&self, other: &ColdCacheConfig) -> bool
fn eq(&self, other: &ColdCacheConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ColdCacheConfig
impl Serialize for ColdCacheConfig
impl StructuralPartialEq for ColdCacheConfig
Auto Trait Implementations§
impl Freeze for ColdCacheConfig
impl RefUnwindSafe for ColdCacheConfig
impl Send for ColdCacheConfig
impl Sync for ColdCacheConfig
impl Unpin for ColdCacheConfig
impl UnsafeUnpin for ColdCacheConfig
impl UnwindSafe for ColdCacheConfig
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