pub struct Config {Show 20 fields
pub model_path: String,
pub llama_bin: String,
pub llama_host: String,
pub llama_port: u16,
pub ctx_size: u32,
pub batch_size: u32,
pub threads: u32,
pub gpu_layers: u32,
pub health_timeout_seconds: u64,
pub hot_swap_grace_seconds: u64,
pub max_concurrent_streams: u32,
pub prometheus_port: u16,
pub api_host: String,
pub api_port: u16,
pub requests_per_second: u32,
pub generate_timeout_seconds: u64,
pub stream_timeout_seconds: u64,
pub health_check_timeout_seconds: u64,
pub queue_size: usize,
pub queue_timeout_seconds: u64,
}Fields§
§model_path: String§llama_bin: String§llama_host: String§llama_port: u16§ctx_size: u32§batch_size: u32§threads: u32§gpu_layers: u32§health_timeout_seconds: u64§hot_swap_grace_seconds: u64§max_concurrent_streams: u32§prometheus_port: u16§api_host: String§api_port: u16§requests_per_second: u32§generate_timeout_seconds: u64§stream_timeout_seconds: u64§health_check_timeout_seconds: u64§queue_size: usize§queue_timeout_seconds: u64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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