pub struct ServedModelRegistry { /* private fields */ }Implementations§
Source§impl ServedModelRegistry
impl ServedModelRegistry
pub fn try_new( engine_model_id: impl Into<ModelId>, kind: ServedModelKind, served_model_names: Vec<String>, adapters: Vec<LoraAdapterModel>, ) -> Result<Self, ServedModelRegistryError>
pub fn entries(&self) -> &[ServedModelEntry]
pub fn is_empty(&self) -> bool
pub fn primary_model_name(&self) -> Option<&ServedModelName>
pub fn adapter_models(&self) -> impl Iterator<Item = &LoraAdapterModel>
pub fn adapter_count(&self) -> usize
pub fn try_with_lora_adapters( &self, expected_base: &str, adapters: Vec<LoraAdapterModel>, ) -> Result<Self, ServedModelRegistryError>
pub fn resolve( &self, request_model: &str, required_kind: ServedModelKind, ) -> Option<&ServedModelEntry>
Trait Implementations§
Source§impl Clone for ServedModelRegistry
impl Clone for ServedModelRegistry
Source§fn clone(&self) -> ServedModelRegistry
fn clone(&self) -> ServedModelRegistry
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 moreSource§impl Debug for ServedModelRegistry
impl Debug for ServedModelRegistry
Source§impl Default for ServedModelRegistry
impl Default for ServedModelRegistry
Source§fn default() -> ServedModelRegistry
fn default() -> ServedModelRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServedModelRegistry
impl RefUnwindSafe for ServedModelRegistry
impl Send for ServedModelRegistry
impl Sync for ServedModelRegistry
impl Unpin for ServedModelRegistry
impl UnsafeUnpin for ServedModelRegistry
impl UnwindSafe for ServedModelRegistry
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