pub struct PortAddress {
    pub net: u8,
    pub sub_net: u8,
    pub universe: u8,
}
Expand description

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 |

Fields

net: u8sub_net: u8universe: u8

Implementations

Combines the Net, SubNet and Universe into a single usize index. Note this is not the same as the little endian u16 sent over the wire.

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.