Struct tic::Controller [−][src]
pub struct Controller<T> { /* fields omitted */ }
a Controller
allows interacting with a remote Receiver
Methods
impl<T> Controller<T>
[src]
impl<T> Controller<T>
pub fn new(control_tx: SyncSender<ControlMessage<T>>) -> Controller<T>
[src]
pub fn new(control_tx: SyncSender<ControlMessage<T>>) -> Controller<T>
pub fn get_meters(&self) -> Result<Meters<T>, Error>
[src]
pub fn get_meters(&self) -> Result<Meters<T>, Error>
takes a snapshot of the current meters by cloning them
this will block until the Receiver
responds
Auto Trait Implementations
impl<T> Send for Controller<T> where
T: Send,
impl<T> Send for Controller<T> where
T: Send,
impl<T> Sync for Controller<T> where
T: Send,
impl<T> Sync for Controller<T> where
T: Send,