pub struct LLMInstance {
pub id: String,
pub base_url: String,
pub active_requests: Arc<AtomicUsize>,
pub status: Arc<RwLock<InstanceStatus>>,
pub is_in_timeout: Arc<AtomicBool>,
pub timeout_until: Arc<RwLock<Option<Instant>>>,
pub supported_models: Arc<RwLock<HashMap<String, Vec<ModelCapability>>>>,
}
Fields§
§id: String
§base_url: String
§active_requests: Arc<AtomicUsize>
§status: Arc<RwLock<InstanceStatus>>
§is_in_timeout: Arc<AtomicBool>
§timeout_until: Arc<RwLock<Option<Instant>>>
§supported_models: Arc<RwLock<HashMap<String, Vec<ModelCapability>>>>
Implementations§
Source§impl LLMInstance
impl LLMInstance
pub fn new( id: String, base_url: String, initial_status: InstanceStatus, supported_models_map: HashMap<String, Vec<ModelCapability>>, ) -> Self
Trait Implementations§
Source§impl Clone for LLMInstance
impl Clone for LLMInstance
Source§fn clone(&self) -> LLMInstance
fn clone(&self) -> LLMInstance
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 moreAuto Trait Implementations§
impl Freeze for LLMInstance
impl !RefUnwindSafe for LLMInstance
impl Send for LLMInstance
impl Sync for LLMInstance
impl Unpin for LLMInstance
impl !UnwindSafe for LLMInstance
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