pub struct Limits {Show 17 fields
pub memory_gb: f64,
pub context_tokens: usize,
pub prefix_cache_mib: usize,
pub cache_max_entries: usize,
pub cache_idle_seconds: u64,
pub queued_requests: usize,
pub http_readers: usize,
pub request_bytes: usize,
pub max_output_tokens: usize,
pub active_requests: usize,
pub active_state_mib: usize,
pub prefill_quantum: usize,
pub prefill_chunk_seconds: f64,
pub max_sessions: usize,
pub session_history_mib: usize,
pub session_idle_seconds: u64,
pub response_bytes: usize,
}Fields§
§memory_gb: f64Metal allocations plus reserved prefix cache, not whole-process RSS.
context_tokens: usize§prefix_cache_mib: usize§cache_max_entries: usize§cache_idle_seconds: u64Zero disables time-based expiry; the byte and entry limits still apply.
queued_requests: usize§http_readers: usize§request_bytes: usize§max_output_tokens: usize§active_requests: usize§active_state_mib: usize§prefill_quantum: usize§prefill_chunk_seconds: f64Target chunk duration when requests compete; 0 disables pacing.
max_sessions: usize§session_history_mib: usize§session_idle_seconds: u64§response_bytes: usizeTrait Implementations§
Source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
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 StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more