[−][src]Struct truebner_smt100::modbus::SlaveProxy
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]
&self,
timeout: Duration
) -> impl Future<Item = Temperature, Error = Error>
pub fn read_water_content(
&self,
timeout: Duration
) -> impl Future<Item = VolumetricWaterContent, Error = Error>
[src]
&self,
timeout: Duration
) -> impl Future<Item = VolumetricWaterContent, Error = Error>
pub fn read_permittivity(
&self,
timeout: Duration
) -> impl Future<Item = RelativePermittivity, Error = Error>
[src]
&self,
timeout: Duration
) -> impl Future<Item = RelativePermittivity, Error = Error>
pub fn read_raw_counts(
&self,
timeout: Duration
) -> impl Future<Item = usize, Error = Error>
[src]
&self,
timeout: Duration
) -> impl Future<Item = usize, Error = Error>
Trait Implementations
impl Capabilities for SlaveProxy
[src]
fn read_temperature(
&self,
timeout: Duration
) -> Box<dyn Future<Item = Temperature, Error = Error>>
[src]
&self,
timeout: Duration
) -> Box<dyn Future<Item = Temperature, Error = Error>>
fn read_water_content(
&self,
timeout: Duration
) -> Box<dyn Future<Item = VolumetricWaterContent, Error = Error>>
[src]
&self,
timeout: Duration
) -> Box<dyn Future<Item = VolumetricWaterContent, Error = Error>>
fn read_permittivity(
&self,
timeout: Duration
) -> Box<dyn Future<Item = RelativePermittivity, Error = Error>>
[src]
&self,
timeout: Duration
) -> Box<dyn Future<Item = RelativePermittivity, Error = Error>>
fn read_raw_counts(
&self,
timeout: Duration
) -> Box<dyn Future<Item = usize, Error = Error>>
[src]
&self,
timeout: Duration
) -> Box<dyn Future<Item = usize, Error = Error>>
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.