pub struct TokenWarningState {
pub percent_left: u64,
pub is_above_warning: bool,
pub is_above_error: bool,
pub should_compact: bool,
pub is_blocking: bool,
}Expand description
Token warning state for the UI.
Fields§
§percent_left: u64Percentage of context window remaining.
is_above_warning: boolWhether to show a warning in the UI.
is_above_error: boolWhether to show an error in the UI.
should_compact: boolWhether auto-compact should fire.
is_blocking: boolWhether the context is at the blocking limit.
Trait Implementations§
Source§impl Clone for TokenWarningState
impl Clone for TokenWarningState
Source§fn clone(&self) -> TokenWarningState
fn clone(&self) -> TokenWarningState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TokenWarningState
impl RefUnwindSafe for TokenWarningState
impl Send for TokenWarningState
impl Sync for TokenWarningState
impl Unpin for TokenWarningState
impl UnsafeUnpin for TokenWarningState
impl UnwindSafe for TokenWarningState
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