Struct litep2p::BandwidthSink
source · pub struct BandwidthSink(/* private fields */);
Expand description
Bandwidth sink which provides metering for inbound/outbound byte usage.
The reported values are not necessarily up to date with the latest information
and should not be used for metrics that require high precision but they do provide
an overall view of the data usage of litep2p
.
Implementations§
Trait Implementations§
source§impl Clone for BandwidthSink
impl Clone for BandwidthSink
source§fn clone(&self) -> BandwidthSink
fn clone(&self) -> BandwidthSink
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for BandwidthSink
impl RefUnwindSafe for BandwidthSink
impl Send for BandwidthSink
impl Sync for BandwidthSink
impl Unpin for BandwidthSink
impl UnwindSafe for BandwidthSink
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)