pub struct InstanceStats {
pub instance_id: usize,
pub total_requests: u64,
pub pending_requests: usize,
pub avg_latency_us: f64,
pub last_request: Option<Instant>,
pub load_factor: f32,
}Expand description
Statistics for a pooled instance.
Fields§
§instance_id: usize§total_requests: u64§pending_requests: usize§avg_latency_us: f64§last_request: Option<Instant>§load_factor: f32Trait Implementations§
Source§impl Clone for InstanceStats
impl Clone for InstanceStats
Source§fn clone(&self) -> InstanceStats
fn clone(&self) -> InstanceStats
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 InstanceStats
impl RefUnwindSafe for InstanceStats
impl Send for InstanceStats
impl Sync for InstanceStats
impl Unpin for InstanceStats
impl UnsafeUnpin for InstanceStats
impl UnwindSafe for InstanceStats
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