[][src]Enum tokio_modbus::prelude::Request

pub enum Request {
    ReadCoils(u16u16),
    ReadDiscreteInputs(u16u16),
    WriteSingleCoil(u16bool),
    WriteMultipleCoils(u16Vec<bool>),
    ReadInputRegisters(u16u16),
    ReadHoldingRegisters(u16u16),
    WriteSingleRegister(u16u16),
    WriteMultipleRegisters(u16Vec<u16>),
    ReadWriteMultipleRegisters(u16u16u16Vec<u16>),
    Custom(u8Vec<u8>),
    Disconnect,
}

A request represents a message from the client (master) to the server (slave).

Variants

ReadCoils(u16u16)ReadDiscreteInputs(u16u16)WriteSingleCoil(u16bool)WriteMultipleCoils(u16Vec<bool>)ReadInputRegisters(u16u16)ReadHoldingRegisters(u16u16)WriteSingleRegister(u16u16)WriteMultipleRegisters(u16Vec<u16>)ReadWriteMultipleRegisters(u16u16u16Vec<u16>)Custom(u8Vec<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]

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]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Request

impl Sync for Request

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T