pub struct Dmx<'a> {
    pub sequence: u8,
    pub physical: u8,
    pub port_address: PortAddress,
    pub data: &'a [u8],
}

Fields

sequence: u8

The sequence number is used to ensure that ArtDmx packets are used in the correct order. When Art-Net is carried over a medium such as the Internet, it is possible that ArtDmx packets will reach the receiver out of order.

This field is incremented in the range 0x01 to 0xff to allow the receiving node to re-sequence packets.

The Sequence field is set to 0x00 to disable this feature.

physical: u8

The physical input port from which DMX512 data was input. This field is used by the receiving device to discriminate between packets with identical Port-Address that have been generated by different input ports and so need to be merged.

port_address: PortAddress

one of the 32,768 possible addresses to which a DMX frame can be directed. The Port-Address is a 15-bit number composed of Net+Sub-Net+Universe.

Bits: | 15 | 8-14 | 4-7 | 0-3 | | 0 | Net | SubNet | Universe |

data: &'a [u8]

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.