pub struct SessionLimits {
pub effective_n_ctx: i32,
pub effective_max_audio_ms: i64,
pub max_kv_bytes: i64,
}Expand description
Per-session effective limits.
Fields§
§effective_n_ctx: i32Decoder context cap in force for this session (0 = unbounded family).
effective_max_audio_ms: i64Longest accepted audio in ms (0 = no practical limit).
max_kv_bytes: i64Worst-case decoder KV bytes for one utterance (0 = no decoder KV).
Trait Implementations§
Source§impl Clone for SessionLimits
impl Clone for SessionLimits
Source§fn clone(&self) -> SessionLimits
fn clone(&self) -> SessionLimits
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 moreimpl Copy for SessionLimits
Source§impl Debug for SessionLimits
impl Debug for SessionLimits
impl Eq for SessionLimits
Source§impl PartialEq for SessionLimits
impl PartialEq for SessionLimits
Source§fn eq(&self, other: &SessionLimits) -> bool
fn eq(&self, other: &SessionLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionLimits
Auto Trait Implementations§
impl Freeze for SessionLimits
impl RefUnwindSafe for SessionLimits
impl Send for SessionLimits
impl Sync for SessionLimits
impl Unpin for SessionLimits
impl UnsafeUnpin for SessionLimits
impl UnwindSafe for SessionLimits
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