pub struct ColdReadCacheParams {
pub max_bytes: usize,
pub block_bytes: usize,
pub max_readahead_blocks: usize,
}Expand description
Runtime parameters for the optional cold-read cache.
Kept separate from the serde ursula_config::ColdCacheConfig because
ColdReadCache accesses these fields on the hot path.
Fields§
§max_bytes: usize§block_bytes: usize§max_readahead_blocks: usizeTrait Implementations§
Source§impl Clone for ColdReadCacheParams
impl Clone for ColdReadCacheParams
Source§fn clone(&self) -> ColdReadCacheParams
fn clone(&self) -> ColdReadCacheParams
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 moreimpl Copy for ColdReadCacheParams
Auto Trait Implementations§
impl Freeze for ColdReadCacheParams
impl RefUnwindSafe for ColdReadCacheParams
impl Send for ColdReadCacheParams
impl Sync for ColdReadCacheParams
impl Unpin for ColdReadCacheParams
impl UnsafeUnpin for ColdReadCacheParams
impl UnwindSafe for ColdReadCacheParams
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