Trait sc_network::service::traits::BandwidthSink
source · pub trait BandwidthSink: Send + Sync {
// Required methods
fn total_inbound(&self) -> u64;
fn total_outbound(&self) -> u64;
}
Expand description
Trait defining the behavior of a bandwidth sink.
Required Methods§
sourcefn total_inbound(&self) -> u64
fn total_inbound(&self) -> u64
Get the number of bytes received.
sourcefn total_outbound(&self) -> u64
fn total_outbound(&self) -> u64
Get the number of bytes sent.