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§

source

fn total_inbound(&self) -> u64

Get the number of bytes received.

source

fn total_outbound(&self) -> u64

Get the number of bytes sent.

Implementors§