pub struct ResidentSlotSnapshot {
pub slot: usize,
pub model_name: String,
pub model_id: u32,
pub port: u16,
pub inflight: u32,
pub is_primary: bool,
pub resident_for_secs: u64,
}Expand description
One model resident in VRAM.
Fields§
§slot: usizeSlot index. 0 is the primary.
model_name: StringName of the resident model.
model_id: u32Database id of the resident model.
port: u16Port its llama-server is listening on.
inflight: u32Requests currently holding a lease on this slot.
A slot serving anything at all can never be evicted — a swap must not preempt a live generation.
is_primary: boolWhether this is the primary slot, i.e. the one chat traffic and the
llama.cpp /slots poller follow.
resident_for_secs: u64Seconds this model has been resident.
Trait Implementations§
Source§impl Clone for ResidentSlotSnapshot
impl Clone for ResidentSlotSnapshot
Source§fn clone(&self) -> ResidentSlotSnapshot
fn clone(&self) -> ResidentSlotSnapshot
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 ResidentSlotSnapshot
impl Debug for ResidentSlotSnapshot
Source§impl PartialEq for ResidentSlotSnapshot
impl PartialEq for ResidentSlotSnapshot
Source§fn eq(&self, other: &ResidentSlotSnapshot) -> bool
fn eq(&self, other: &ResidentSlotSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResidentSlotSnapshot
impl Serialize for ResidentSlotSnapshot
impl Eq for ResidentSlotSnapshot
impl StructuralPartialEq for ResidentSlotSnapshot
Auto Trait Implementations§
impl Freeze for ResidentSlotSnapshot
impl RefUnwindSafe for ResidentSlotSnapshot
impl Send for ResidentSlotSnapshot
impl Sync for ResidentSlotSnapshot
impl Unpin for ResidentSlotSnapshot
impl UnsafeUnpin for ResidentSlotSnapshot
impl UnwindSafe for ResidentSlotSnapshot
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