Trait stun::client::Collector [−][src]
pub trait Collector {
fn start(
&mut self,
rate: Duration,
client_agent_tx: Arc<Sender<ClientAgent>>
) -> Result<(), Error>;
fn close(&mut self) -> Result<(), Error>;
}
Expand description
Collector calls function f with constant rate.
The simple Collector is ticker which calls function on each tick.