pub struct ProxyHostStats {
pub success: u32,
pub fail: u32,
pub success_rate: f64,
pub avg_latency_ms: f64,
pub consecutive_fails: u32,
}Expand description
Per-(proxy, host) statistics snapshot (user-facing / serialisable).
Fields§
§success: u32§fail: u32§success_rate: f64§avg_latency_ms: f64§consecutive_fails: u32Trait Implementations§
Source§impl Clone for ProxyHostStats
impl Clone for ProxyHostStats
Source§fn clone(&self) -> ProxyHostStats
fn clone(&self) -> ProxyHostStats
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 ProxyHostStats
impl Debug for ProxyHostStats
Source§impl Default for ProxyHostStats
impl Default for ProxyHostStats
Source§impl<'de> Deserialize<'de> for ProxyHostStats
impl<'de> Deserialize<'de> for ProxyHostStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProxyHostStats
impl RefUnwindSafe for ProxyHostStats
impl Send for ProxyHostStats
impl Sync for ProxyHostStats
impl Unpin for ProxyHostStats
impl UnsafeUnpin for ProxyHostStats
impl UnwindSafe for ProxyHostStats
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