pub enum RuntimeConfig {
Vllm(Value),
TensorRt(Value),
Ort(Value),
Candle(Value),
Cudarc(Value),
MistralRs(Value),
OpenAi(Value),
Anthropic(Value),
Gemini(Value),
LiteLlm(Value),
Custom {
kind: String,
config: Value,
},
}Expand description
Per-deployment runtime configuration. The runtime discriminator
drives both the backend selection and the shape of the inner config
blob. Per-runtime crates each contribute one variant or expose their
own RuntimeConfig-shaped struct that can be wrapped in Custom.
Variants§
Vllm(Value)
vLLM (local Python). Body intentionally opaque here — the real
shape lives in inference-runtime-vllm and is parsed lazily.
TensorRt(Value)
Ort(Value)
Candle(Value)
Cudarc(Value)
MistralRs(Value)
OpenAi(Value)
Remote OpenAI / Azure OpenAI. Concrete shape in
inference-runtime-openai::OpenAiConfig.
Anthropic(Value)
Gemini(Value)
LiteLlm(Value)
Custom
Custom backend (third-party runtime crate).
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn runtime_kind(&self) -> RuntimeKind
pub fn transport_kind(&self) -> TransportKind
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
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
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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