pub struct DefaultLifecycle;Trait Implementations§
Source§impl Clone for DefaultLifecycle
impl Clone for DefaultLifecycle
Source§fn clone(&self) -> DefaultLifecycle
fn clone(&self) -> DefaultLifecycle
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 DefaultLifecycle
impl Debug for DefaultLifecycle
Source§impl Default for DefaultLifecycle
impl Default for DefaultLifecycle
Source§fn default() -> DefaultLifecycle
fn default() -> DefaultLifecycle
Returns the “default value” for a type. Read more
Source§impl<K, V> Lifecycle<K, V> for DefaultLifecycle
impl<K, V> Lifecycle<K, V> for DefaultLifecycle
Source§fn on_eviction(&mut self, _key: K, _value: V)
fn on_eviction(&mut self, _key: K, _value: V)
Called when an entry has been evicted from the cache. Receives ownership
of the key and value so they can be forwarded or dropped.
Source§fn evaluate(&self, _key: &K, _value: &V) -> EntryStatus
fn evaluate(&self, _key: &K, _value: &V) -> EntryStatus
Inspect an existing entry and decide whether it should remain in the
cache. Called as the sieve hand passes over entries during
Cache::put.impl Copy for DefaultLifecycle
Auto Trait Implementations§
impl Freeze for DefaultLifecycle
impl RefUnwindSafe for DefaultLifecycle
impl Send for DefaultLifecycle
impl Sync for DefaultLifecycle
impl Unpin for DefaultLifecycle
impl UnsafeUnpin for DefaultLifecycle
impl UnwindSafe for DefaultLifecycle
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