pub struct MemoryStats {
pub total_chunks: usize,
pub session_chunks: usize,
pub long_term_chunks: usize,
pub total_sessions: usize,
pub open_sessions: usize,
pub db_bytes: u64,
pub embedding_model: Option<String>,
}Expand description
Summary statistics returned by crate::MemoryProvider::stats. Useful for
dashboards, health checks, and storage monitoring.
Fields§
§total_chunks: usizeTotal chunks across both tiers.
session_chunks: usizeChunks in the session tier.
long_term_chunks: usizeChunks in the long_term tier.
total_sessions: usizeTotal sessions (open + closed).
open_sessions: usizeCurrently open sessions.
db_bytes: u64On-disk database size in bytes (best-effort).
embedding_model: Option<String>Name of the embedding model in use, if any.
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§fn default() -> MemoryStats
fn default() -> MemoryStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryStats
impl<'de> Deserialize<'de> for MemoryStats
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 MemoryStats
impl PartialEq for MemoryStats
Source§fn eq(&self, other: &MemoryStats) -> bool
fn eq(&self, other: &MemoryStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryStats
impl Serialize for MemoryStats
impl StructuralPartialEq for MemoryStats
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnsafeUnpin for MemoryStats
impl UnwindSafe for MemoryStats
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