Struct meter_proxy::proxy::async::AsyncMeterProxy
[−]
[src]
pub struct AsyncMeterProxy { pub back_address: String, pub back_port: u16, pub front_address: String, pub front_port: u16, pub num_bytes: Arc<Mutex<f64>>, pub num_resp: Arc<Mutex<f64>>, }
Fields
back_address: String
back_port: u16
front_address: String
front_port: u16
num_bytes: Arc<Mutex<f64>>
num_resp: Arc<Mutex<f64>>
Methods
impl AsyncMeterProxy
[src]
fn new(
b_addr: String,
b_port: u16,
f_addr: String,
f_port: u16
) -> AsyncMeterProxy
b_addr: String,
b_port: u16,
f_addr: String,
f_port: u16
) -> AsyncMeterProxy
fn start(&self)
fn reset(&self)
Reset the proxy server counter
fn get_num_kbytes_rcvd(&self) -> f64
fn get_latency(&self) -> f64
Trait Implementations
impl Clone for AsyncMeterProxy
[src]
fn clone(&self) -> AsyncMeterProxy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more