Enum modbus_protocol::function_code::ModbusFunction[][src]

pub enum ModbusFunction<'a> {
    ReadCoils(Address, Quantity),
    ReadDiscreteInputs(Address, Quantity),
    ReadHoldingRegisters(Address, Quantity),
    ReadInputRegisters(Address, Quantity),
    WriteSingleCoil(Address, Coil),
    WriteSingleRegister(Address, Value),
    WriteMultipleCoils(Address, &'a Coils),
    WriteMultipleRegisters(Address, &'a Values),
}

Variants

ReadCoils

Tuple Fields of ReadCoils

0: Address1: Quantity
ReadDiscreteInputs

Tuple Fields of ReadDiscreteInputs

0: Address1: Quantity
ReadHoldingRegisters

Tuple Fields of ReadHoldingRegisters

0: Address1: Quantity
ReadInputRegisters

Tuple Fields of ReadInputRegisters

0: Address1: Quantity
WriteSingleCoil

Tuple Fields of WriteSingleCoil

0: Address1: Coil
WriteSingleRegister

Tuple Fields of WriteSingleRegister

0: Address1: Value
WriteMultipleCoils

Tuple Fields of WriteMultipleCoils

0: Address1: &'a Coils
WriteMultipleRegisters

Tuple Fields of WriteMultipleRegisters

0: Address1: &'a Values

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.