pub struct CacheSizeRegistration {
_reader: Arc<dyn Fn() -> u64 + Send + Sync>,
}Expand description
Keeps a cache instance registered for size sampling while any owner remains.
Fields§
§_reader: Arc<dyn Fn() -> u64 + Send + Sync>Trait Implementations§
Source§impl Clone for CacheSizeRegistration
impl Clone for CacheSizeRegistration
Source§fn clone(&self) -> CacheSizeRegistration
fn clone(&self) -> CacheSizeRegistration
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CacheSizeRegistration
impl !UnwindSafe for CacheSizeRegistration
impl Freeze for CacheSizeRegistration
impl Send for CacheSizeRegistration
impl Sync for CacheSizeRegistration
impl Unpin for CacheSizeRegistration
impl UnsafeUnpin for CacheSizeRegistration
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