pub struct PropagationStats {
pub updates_sent: u64,
pub bytes_sent: u64,
pub updates_dropped: u64,
pub avg_latency_ms: f32,
pub peak_latency_ms: u32,
}Expand description
Propagation statistics
Fields§
§updates_sent: u64Total updates sent
bytes_sent: u64Total bytes sent
updates_dropped: u64Updates dropped (bandwidth limit)
avg_latency_ms: f32Average latency in milliseconds
peak_latency_ms: u32Peak latency in milliseconds
Implementations§
Source§impl PropagationStats
impl PropagationStats
pub fn new() -> Self
pub fn record_send(&mut self, bytes: u64, latency_ms: u32)
pub fn record_drop(&mut self)
Trait Implementations§
Source§impl Clone for PropagationStats
impl Clone for PropagationStats
Source§fn clone(&self) -> PropagationStats
fn clone(&self) -> PropagationStats
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 moreSource§impl Debug for PropagationStats
impl Debug for PropagationStats
Source§impl Default for PropagationStats
impl Default for PropagationStats
Source§fn default() -> PropagationStats
fn default() -> PropagationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PropagationStats
impl RefUnwindSafe for PropagationStats
impl Send for PropagationStats
impl Sync for PropagationStats
impl Unpin for PropagationStats
impl UnsafeUnpin for PropagationStats
impl UnwindSafe for PropagationStats
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