pub struct BandwidthMetricsBuilder { /* private fields */ }Expand description
Builder for BandwidthMetrics with fluent API.
Implementations§
Source§impl BandwidthMetricsBuilder
impl BandwidthMetricsBuilder
Sourcepub fn bytes_transferred(self, bytes: Bytes) -> Self
pub fn bytes_transferred(self, bytes: Bytes) -> Self
Set the bytes transferred.
Sourcepub fn total_time_ms(self, time: f64) -> Self
pub fn total_time_ms(self, time: f64) -> Self
Set the total time in milliseconds.
Sourcepub fn transfer_count(self, count: u64) -> Self
pub fn transfer_count(self, count: u64) -> Self
Set the transfer count.
Sourcepub fn build(self) -> BandwidthMetrics
pub fn build(self) -> BandwidthMetrics
Build the BandwidthMetrics.
Trait Implementations§
Source§impl Debug for BandwidthMetricsBuilder
impl Debug for BandwidthMetricsBuilder
Source§impl Default for BandwidthMetricsBuilder
impl Default for BandwidthMetricsBuilder
Source§fn default() -> BandwidthMetricsBuilder
fn default() -> BandwidthMetricsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BandwidthMetricsBuilder
impl RefUnwindSafe for BandwidthMetricsBuilder
impl Send for BandwidthMetricsBuilder
impl Sync for BandwidthMetricsBuilder
impl Unpin for BandwidthMetricsBuilder
impl UnwindSafe for BandwidthMetricsBuilder
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