pub struct RegionSnapshot {
pub name: String,
pub kind: String,
pub current_tokens: usize,
pub max_tokens: usize,
pub entries: Vec<RegionEntrySnapshot>,
}Expand description
Per-region token snapshot written by the background worker after each inference.
Fields§
§name: String§kind: StringStringified kind: “pinned”, “temporary”, “clearable”, “sliding”, “compacting”, “history”
current_tokens: usize§max_tokens: usize§entries: Vec<RegionEntrySnapshot>Actual content entries stored in this region (empty for zero-token regions).
Trait Implementations§
Source§impl Clone for RegionSnapshot
impl Clone for RegionSnapshot
Source§fn clone(&self) -> RegionSnapshot
fn clone(&self) -> RegionSnapshot
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 RegionSnapshot
impl Debug for RegionSnapshot
Source§impl<'de> Deserialize<'de> for RegionSnapshot
impl<'de> Deserialize<'de> for RegionSnapshot
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 RegionSnapshot
impl PartialEq for RegionSnapshot
Source§impl Serialize for RegionSnapshot
impl Serialize for RegionSnapshot
impl StructuralPartialEq for RegionSnapshot
Auto Trait Implementations§
impl Freeze for RegionSnapshot
impl RefUnwindSafe for RegionSnapshot
impl Send for RegionSnapshot
impl Sync for RegionSnapshot
impl Unpin for RegionSnapshot
impl UnsafeUnpin for RegionSnapshot
impl UnwindSafe for RegionSnapshot
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