pub struct DefaultExponentialPolicy;Expand description
The default Exponential Policy scaling latency thresholds by 2^n.
Trait Implementations§
Source§impl CachePolicy for DefaultExponentialPolicy
impl CachePolicy for DefaultExponentialPolicy
Source§const T2_THRESHOLD: u16 = 2
const T2_THRESHOLD: u16 = 2
Hit count threshold to promote from Local TLS Cache to T2 Core Cache.
Source§const T1_THRESHOLD: u16 = 16
const T1_THRESHOLD: u16 = 16
Hit count threshold to promote from T2 to T1.
Source§const T0_THRESHOLD: u16 = 256
const T0_THRESHOLD: u16 = 256
Hit count threshold to promote from T1 to T0.
type Evict = DefaultEvictionPolicy
Source§const _ASSERT_POWER_OF_TWO: () = _
const _ASSERT_POWER_OF_TWO: () = _
Compile-Time Assertions
Forces the user-defined thresholds to be powers of two.
Auto Trait Implementations§
impl Freeze for DefaultExponentialPolicy
impl RefUnwindSafe for DefaultExponentialPolicy
impl Send for DefaultExponentialPolicy
impl Sync for DefaultExponentialPolicy
impl Unpin for DefaultExponentialPolicy
impl UnsafeUnpin for DefaultExponentialPolicy
impl UnwindSafe for DefaultExponentialPolicy
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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