Dmx

Struct Dmx 

Source
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§

Source§

impl<'a> Debug for Dmx<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Dmx<'a>

§

impl<'a> RefUnwindSafe for Dmx<'a>

§

impl<'a> Send for Dmx<'a>

§

impl<'a> Sync for Dmx<'a>

§

impl<'a> Unpin for Dmx<'a>

§

impl<'a> UnwindSafe for Dmx<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.