pub struct CacheHealthComponent { /* private fields */ }Expand description
Runtime component that registers the standard cache diagnostics check.
Implementations§
Source§impl CacheHealthComponent
impl CacheHealthComponent
Sourcepub fn new(config: CacheConfig, cache: Arc<dyn CacheBackend>) -> Self
pub fn new(config: CacheConfig, cache: Arc<dyn CacheBackend>) -> Self
Creates a cache health component from static configuration and active backend.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheHealthComponent
impl !RefUnwindSafe for CacheHealthComponent
impl Send for CacheHealthComponent
impl Sync for CacheHealthComponent
impl Unpin for CacheHealthComponent
impl UnsafeUnpin for CacheHealthComponent
impl !UnwindSafe for CacheHealthComponent
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