Enum tokio_modbus::Response
[−]
[src]
pub enum Response { ReadCoils(Vec<bool>), ReadDiscreteInputs(Vec<bool>), WriteSingleCoil(u16), WriteMultipleCoils(u16, u16), ReadInputRegisters(Vec<u16>), ReadHoldingRegisters(Vec<u16>), WriteSingleRegister(u16, u16), WriteMultipleRegisters(u16, u16), ReadWriteMultipleRegisters(Vec<u16>), Custom(u8, Vec<u8>), }
The data of a successfull request.
Variants
ReadCoils(Vec<bool>)
ReadDiscreteInputs(Vec<bool>)
WriteSingleCoil(u16)
WriteMultipleCoils(u16, u16)
ReadInputRegisters(Vec<u16>)
ReadHoldingRegisters(Vec<u16>)
WriteSingleRegister(u16, u16)
WriteMultipleRegisters(u16, u16)
ReadWriteMultipleRegisters(Vec<u16>)
Custom(u8, Vec<u8>)
Trait Implementations
impl Debug for Response
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Response
[src]
fn clone(&self) -> Response
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Response
[src]
fn eq(&self, __arg_0: &Response) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Response) -> bool
[src]
This method tests for !=
.