pub struct ContextWindow {
pub used_tokens: u32,
pub limit_tokens: u32,
}Expand description
Context-window occupancy snapshot for the current (root) session, surfaced in the statusline. Raw measurements only — any percentage is a presentation concern derived at the edges, with no policy (e.g. auto-compaction) baked in.
Fields§
§used_tokens: u32Tokens currently occupying the window (cache-inclusive input + output of the most recent response).
limit_tokens: u32Raw model context limit (e.g. 200_000).
Trait Implementations§
Source§impl Clone for ContextWindow
impl Clone for ContextWindow
impl Copy for ContextWindow
Source§impl Debug for ContextWindow
impl Debug for ContextWindow
Source§impl<'de> Deserialize<'de> for ContextWindow
impl<'de> Deserialize<'de> for ContextWindow
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 ContextWindow
Source§impl PartialEq for ContextWindow
impl PartialEq for ContextWindow
Source§impl Serialize for ContextWindow
impl Serialize for ContextWindow
impl StructuralPartialEq for ContextWindow
Auto Trait Implementations§
impl Freeze for ContextWindow
impl RefUnwindSafe for ContextWindow
impl Send for ContextWindow
impl Sync for ContextWindow
impl Unpin for ContextWindow
impl UnsafeUnpin for ContextWindow
impl UnwindSafe for ContextWindow
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