pub struct CollectionStats {Show 16 fields
pub doc_count: u64,
pub indexes: Vec<IndexStat>,
pub revision: u64,
pub index_cache_hit: bool,
pub io_backend: IoBackend,
pub read_only: bool,
pub wal_active_seq: u64,
pub wal_checkpoint_seq: u64,
pub wal_ops_since_checkpoint: u64,
pub wal_bytes_since_checkpoint: u64,
pub accounted_document_bytes: u64,
pub estimated_index_bytes: u64,
pub accounted_bytes: u64,
pub resource_limits: CollectionResourceLimits,
pub storage_ceilings: StorageCeilings,
pub resource_limit_rejections: u64,
}Expand description
Public collection statistics (the fields used by the official SDK are kept first; additional counters are additive).
Fields§
§doc_count: u64§indexes: Vec<IndexStat>§revision: u64§index_cache_hit: bool§io_backend: IoBackendResolved sidecar backend for this collection handle. A cache miss may rebuild indexes in memory without exercising the configured backend.
read_only: bool§wal_active_seq: u64§wal_checkpoint_seq: u64§wal_ops_since_checkpoint: u64§wal_bytes_since_checkpoint: u64§accounted_document_bytes: u64Deterministic serialized size of the authoritative document map.
estimated_index_bytes: u64Sum of deterministic derived-index payload estimates.
accounted_bytes: u64Authoritative document accounting plus derived-index estimates.
resource_limits: CollectionResourceLimitsCollection-local limits captured when this handle was opened.
storage_ceilings: StorageCeilingsPersistence DoS ceilings captured when this handle was opened.
resource_limit_rejections: u64Operations rejected by this handle’s resource policy.
Trait Implementations§
Source§impl Clone for CollectionStats
impl Clone for CollectionStats
Source§impl Debug for CollectionStats
impl Debug for CollectionStats
Source§impl<'de> Deserialize<'de> for CollectionStats
impl<'de> Deserialize<'de> for CollectionStats
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
Source§impl PartialEq for CollectionStats
impl PartialEq for CollectionStats
Source§impl Serialize for CollectionStats
impl Serialize for CollectionStats
impl StructuralPartialEq for CollectionStats
Auto Trait Implementations§
impl Freeze for CollectionStats
impl RefUnwindSafe for CollectionStats
impl Send for CollectionStats
impl Sync for CollectionStats
impl Unpin for CollectionStats
impl UnsafeUnpin for CollectionStats
impl UnwindSafe for CollectionStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more