[−][src]Struct tokio_modbus::client::sync::Context
A synchronous Modbus client context.
Trait Implementations
impl Client for Context
[src]
impl Reader for Context
[src]
fn read_coils(&mut self, addr: u16, cnt: u16) -> Result<Vec<bool>>
[src]
fn read_discrete_inputs(&mut self, addr: u16, cnt: u16) -> Result<Vec<bool>>
[src]
fn read_input_registers(&mut self, addr: u16, cnt: u16) -> Result<Vec<u16>>
[src]
fn read_holding_registers(&mut self, addr: u16, cnt: u16) -> Result<Vec<u16>>
[src]
fn read_write_multiple_registers(
&mut self,
read_addr: u16,
read_cnt: u16,
write_addr: u16,
write_data: &[u16]
) -> Result<Vec<u16>>
[src]
&mut self,
read_addr: u16,
read_cnt: u16,
write_addr: u16,
write_data: &[u16]
) -> Result<Vec<u16>>
impl Writer for Context
[src]
fn write_single_register(&mut self, addr: u16, data: u16) -> Result<()>
[src]
fn write_multiple_registers(&mut self, addr: u16, data: &[u16]) -> Result<()>
[src]
fn write_single_coil(&mut self, addr: u16, coil: bool) -> Result<()>
[src]
fn write_multiple_coils(&mut self, addr: u16, coils: &[bool]) -> Result<()>
[src]
impl SlaveContext for Context
[src]
Auto Trait Implementations
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.