pub struct TokenLimits;Implementations§
Source§impl TokenLimits
impl TokenLimits
pub fn new() -> Self
pub fn get_limit(&self, model: &str) -> Option<TokenLimit>
pub fn get_usage_percentage_from_state( &self, state: &SessionState, ) -> Option<(f64, f64, f64)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenLimits
impl RefUnwindSafe for TokenLimits
impl Send for TokenLimits
impl Sync for TokenLimits
impl Unpin for TokenLimits
impl UnwindSafe for TokenLimits
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