pub struct PoolSnapshot {
pub read_cache_entries: usize,
pub read_cache_tombstones: usize,
pub read_cache_hits: usize,
pub read_cache_misses: usize,
pub read_cache_capped: usize,
pub read_cache_open_fails: usize,
pub read_cache_max_entries: usize,
pub ledger_writer_inits: usize,
}Expand description
Read-cache + ledger-writer snapshot.
Returned by crate::Engine::pool. All counters are monotonic since
process start.
Fields§
§read_cache_entries: usizeActive read-cache entries (open SQLite connections currently parked).
read_cache_tombstones: usizeTombstoned entries waiting on in-flight reads to drain.
read_cache_hits: usizeCache hits since process start.
read_cache_misses: usizeCache misses since process start.
read_cache_capped: usizeTimes a read was admitted with a transient slot (cache was at cap).
read_cache_open_fails: usizeRead-cache slot open failures (SQLite open errors).
read_cache_max_entries: usizeConfigured maximum cache entries.
ledger_writer_inits: usizeLedger writer (re)initializations since process start.
Auto Trait Implementations§
impl Freeze for PoolSnapshot
impl RefUnwindSafe for PoolSnapshot
impl Send for PoolSnapshot
impl Sync for PoolSnapshot
impl Unpin for PoolSnapshot
impl UnsafeUnpin for PoolSnapshot
impl UnwindSafe for PoolSnapshot
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