pub struct XferTelemetry {
pub start_time_us: u64,
pub post_duration_us: u64,
pub xfer_duration_us: u64,
pub total_bytes: u64,
pub desc_count: u64,
}Expand description
Transfer telemetry data wrapper
Fields§
§start_time_us: u64Start time in microseconds since epoch
post_duration_us: u64Post operation duration in microseconds
xfer_duration_us: u64Transfer duration in microseconds
total_bytes: u64Total bytes transferred
desc_count: u64Number of descriptors
Implementations§
Source§impl XferTelemetry
impl XferTelemetry
Sourcepub fn start_time(&self) -> Duration
pub fn start_time(&self) -> Duration
Get the start time as a Duration since Unix epoch
Sourcepub fn post_duration(&self) -> Duration
pub fn post_duration(&self) -> Duration
Get the post operation duration
Sourcepub fn xfer_duration(&self) -> Duration
pub fn xfer_duration(&self) -> Duration
Get the transfer duration
Sourcepub fn total_duration(&self) -> Duration
pub fn total_duration(&self) -> Duration
Get the total duration (post + transfer)
Sourcepub fn transfer_rate_bps(&self) -> f64
pub fn transfer_rate_bps(&self) -> f64
Calculate the transfer rate in bytes per second
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XferTelemetry
impl RefUnwindSafe for XferTelemetry
impl Send for XferTelemetry
impl Sync for XferTelemetry
impl Unpin for XferTelemetry
impl UnwindSafe for XferTelemetry
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