Enum sawp_modbus::Data[][src]

pub enum Data {
    Exception(Exception),
    Diagnostic {
        func: Diagnostic,
        data: Vec<u8>,
    },
    MEI {
        mei_type: MEI,
        data: Vec<u8>,
    },
    Read(Read),
    Write(Write),
    ReadWrite {
        read: Read,
        write: Write,
    },
    ByteVec(Vec<u8>),
    Empty,
}
Expand description

Represents the various fields found in the PDU

Variants

Exception(Exception)
Diagnostic
Show fields

Fields of Diagnostic

func: Diagnosticdata: Vec<u8>
MEI
Show fields

Fields of MEI

mei_type: MEIdata: Vec<u8>
Read(Read)
Write(Write)
ReadWrite
Show fields

Fields of ReadWrite

read: Readwrite: Write
ByteVec(Vec<u8>)

Used for data that doesn’t fit elsewhere

Empty

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

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.