pub struct ThroughputSample {
pub direction: ThroughputDirection,
pub elapsed: Duration,
pub received_bytes: u64,
pub interval_bps: f64,
}Expand description
One interval throughput observation.
Fields§
§direction: ThroughputDirectionTraffic direction.
elapsed: DurationTime elapsed in the accounted measurement window.
received_bytes: u64Payload bytes received by the measuring side so far.
interval_bps: f64Rate for the most recent sampling interval.
Trait Implementations§
Source§impl Clone for ThroughputSample
impl Clone for ThroughputSample
Source§fn clone(&self) -> ThroughputSample
fn clone(&self) -> ThroughputSample
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 ThroughputSample
impl Debug for ThroughputSample
Source§impl<'de> Deserialize<'de> for ThroughputSample
impl<'de> Deserialize<'de> for ThroughputSample
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
Source§impl PartialEq for ThroughputSample
impl PartialEq for ThroughputSample
Source§impl Serialize for ThroughputSample
impl Serialize for ThroughputSample
impl StructuralPartialEq for ThroughputSample
Auto Trait Implementations§
impl Freeze for ThroughputSample
impl RefUnwindSafe for ThroughputSample
impl Send for ThroughputSample
impl Sync for ThroughputSample
impl Unpin for ThroughputSample
impl UnsafeUnpin for ThroughputSample
impl UnwindSafe for ThroughputSample
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