pub struct ResultCacheMetricsV1 {
pub format_version: u16,
pub collection_id: CollectionId,
pub hits: u64,
pub misses: u64,
pub admissions: u64,
pub bypasses: u64,
pub evictions: u64,
pub collection_bytes: u64,
pub collection_entries: u32,
}Expand description
Numeric-only status; it cannot carry query text, document data, or cached bytes.
Fields§
§format_version: u16§collection_id: CollectionId§hits: u64§misses: u64§admissions: u64§bypasses: u64§evictions: u64§collection_bytes: u64§collection_entries: u32Implementations§
Source§impl ResultCacheMetricsV1
impl ResultCacheMetricsV1
pub fn validate( self, budget: ResultCacheBudgetV1, ) -> Result<(), DerivedContractError>
Trait Implementations§
Source§impl Clone for ResultCacheMetricsV1
impl Clone for ResultCacheMetricsV1
impl Copy for ResultCacheMetricsV1
Source§impl Debug for ResultCacheMetricsV1
impl Debug for ResultCacheMetricsV1
Source§impl<'de> Deserialize<'de> for ResultCacheMetricsV1
impl<'de> Deserialize<'de> for ResultCacheMetricsV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResultCacheMetricsV1
Source§impl PartialEq for ResultCacheMetricsV1
impl PartialEq for ResultCacheMetricsV1
Source§impl Serialize for ResultCacheMetricsV1
impl Serialize for ResultCacheMetricsV1
impl StructuralPartialEq for ResultCacheMetricsV1
Auto Trait Implementations§
impl Freeze for ResultCacheMetricsV1
impl RefUnwindSafe for ResultCacheMetricsV1
impl Send for ResultCacheMetricsV1
impl Sync for ResultCacheMetricsV1
impl Unpin for ResultCacheMetricsV1
impl UnsafeUnpin for ResultCacheMetricsV1
impl UnwindSafe for ResultCacheMetricsV1
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