Struct libp2p::bandwidth::BandwidthSinks [−][src]
pub struct BandwidthSinks { /* fields omitted */ }
Expand description
Allows obtaining the average bandwidth of the connections created from a BandwidthLogging
.
Implementations
Returns the total number of bytes that have been downloaded on all the connections spawned
through the BandwidthLogging
.
Note: This method is by design subject to race conditions. The returned value should only ever be used for statistics purposes.
Returns the total number of bytes that have been uploaded on all the connections spawned
through the BandwidthLogging
.
Note: This method is by design subject to race conditions. The returned value should only ever be used for statistics purposes.
Auto Trait Implementations
impl !RefUnwindSafe for BandwidthSinks
impl Send for BandwidthSinks
impl Sync for BandwidthSinks
impl Unpin for BandwidthSinks
impl UnwindSafe for BandwidthSinks