Struct opc::Message [] [src]

pub struct Message {
    pub channel: u8,
    pub command: Command,
}

Describes a single message that follows the OPC protocol

Fields

Up to 255 separate strands of pixels can be controlled. Channel 0 are considered broadcast messages. Channels number from 1 to 255 are for each strand and listen for messages with that channel number.

Designates the message type

Methods

impl Message
[src]

Create new Message Instance from Pixel Array

Create new Message Instance from Data Array

Check Message Data Length

Check is Message has a valid size

Check if Message is a broadcast message

Trait Implementations

impl Clone for Message
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Message
[src]

Formats the value using the given formatter.

impl PartialEq for Message
[src]

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

This method tests for !=.