pub struct QueuedModelSnapshot {
pub model_name: String,
pub waiting: usize,
pub oldest_wait_ms: u64,
}Expand description
Requests waiting for one model that is not currently resident.
Fields§
§model_name: StringThe model they are waiting for.
waiting: usizeHow many requests are queued.
oldest_wait_ms: u64Age of the oldest waiter, in milliseconds. A figure that keeps climbing
is the sign of a model that never goes idle long enough to be swapped
out — see the runtime’s admission module for why that is bounded by a
deadline rather than by preemption.
Trait Implementations§
Source§impl Clone for QueuedModelSnapshot
impl Clone for QueuedModelSnapshot
Source§fn clone(&self) -> QueuedModelSnapshot
fn clone(&self) -> QueuedModelSnapshot
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 QueuedModelSnapshot
impl Debug for QueuedModelSnapshot
Source§impl PartialEq for QueuedModelSnapshot
impl PartialEq for QueuedModelSnapshot
Source§fn eq(&self, other: &QueuedModelSnapshot) -> bool
fn eq(&self, other: &QueuedModelSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QueuedModelSnapshot
impl Serialize for QueuedModelSnapshot
impl Eq for QueuedModelSnapshot
impl StructuralPartialEq for QueuedModelSnapshot
Auto Trait Implementations§
impl Freeze for QueuedModelSnapshot
impl RefUnwindSafe for QueuedModelSnapshot
impl Send for QueuedModelSnapshot
impl Sync for QueuedModelSnapshot
impl Unpin for QueuedModelSnapshot
impl UnsafeUnpin for QueuedModelSnapshot
impl UnwindSafe for QueuedModelSnapshot
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