[][src]Struct truebner_smt100::modbus::SlaveProxy

pub struct SlaveProxy { /* fields omitted */ }

Methods

impl SlaveProxy[src]

pub fn new(slave: Slave, shared_context: Rc<RefCell<SharedContext>>) -> Self[src]

pub fn slave(&self) -> Slave[src]

pub fn reconnect(&self) -> impl Future<Item = (), Error = Error>[src]

Reconnect a new, shared Modbus context to recover from communication errors.

pub fn broadcast_slave(&self) -> impl Future<Item = (), Error = Error>[src]

Switch the Modbus slave address of all connected devices.

pub fn read_temperature(
    &self,
    timeout: Duration
) -> impl Future<Item = Temperature, Error = Error>
[src]

pub fn read_water_content(
    &self,
    timeout: Duration
) -> impl Future<Item = VolumetricWaterContent, Error = Error>
[src]

pub fn read_permittivity(
    &self,
    timeout: Duration
) -> impl Future<Item = RelativePermittivity, Error = Error>
[src]

pub fn read_raw_counts(
    &self,
    timeout: Duration
) -> impl Future<Item = usize, Error = Error>
[src]

Trait Implementations

impl Capabilities for SlaveProxy[src]

Auto Trait Implementations

impl !Send for SlaveProxy

impl !Sync for SlaveProxy

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T