[−][src]Enum tokio_modbus::prelude::Request
A request represents a message from the client (master) to the server (slave).
Variants
ReadCoils(u16, u16)
ReadDiscreteInputs(u16, u16)
WriteSingleCoil(u16, bool)
WriteMultipleCoils(u16, Vec<bool>)
ReadInputRegisters(u16, u16)
ReadHoldingRegisters(u16, u16)
WriteSingleRegister(u16, u16)
WriteMultipleRegisters(u16, Vec<u16>)
ReadWriteMultipleRegisters(u16, u16, u16, Vec<u16>)
Custom(u8, Vec<u8>)
Disconnect
A poison pill for stopping the client service and to release the underlying transport, e.g. for disconnecting from an exclusively used serial port.
This is an ugly workaround, because tokio-proto
does not
provide other means to gracefully shut down the ClientService
.
Otherwise the bound transport is never freed as long as the
executor is active, even when dropping the Modbus client
context.
Trait Implementations
impl PartialEq<Request> for Request
[src]
impl Eq for Request
[src]
impl Clone for Request
[src]
fn clone(&self) -> Request
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Request> for Bytes
[src]
impl Debug for Request
[src]
impl TryFrom<Bytes> for Request
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
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> 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,