Enum tokio_modbus::Request [] [src]

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>),
}

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

Variants

Trait Implementations

impl Debug for Request
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Request
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Request
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<Request> for Bytes
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Request

impl Sync for Request