pub struct Metrics { /* private fields */ }Implementations§
Source§impl Metrics
impl Metrics
pub const fn new() -> Self
pub fn snapshot(&self) -> MetricsSnapshot
pub fn inc_poison_path_inodes(&self)
pub fn inc_poison_inodes(&self)
pub fn inc_poison_inode_paths(&self)
pub fn inc_poison_directories(&self)
pub fn inc_poison_file_cache(&self)
pub fn inc_sub_cache_hit(&self)
pub fn inc_sub_cache_miss(&self)
pub fn inc_sub_cache_eviction(&self)
pub fn inc_index_cache_hit(&self)
pub fn inc_index_cache_miss(&self)
pub fn inc_index_cache_eviction(&self)
pub fn record_retrieval_query(&self, _dur: Duration)
pub fn record_rerank(&self, _dur: Duration)
pub fn record_hier_query(&self, _dur: Duration)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
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