Enum opc::Command [] [src]

pub enum Command {
    SetPixelColors {
        pixels: Vec<[u8; 3]>,
    },
    SystemExclusive {
        id: [u8; 2],
        data: Vec<u8>,
    },
}

Describes an OPC Command.

Variants

Contains and array of RGB values: three bytes in red, green, blue order for each pixel to set.

Fields of SetPixelColors

If the data block has length 3*n, then the first n pixels of the specified channel are set. All other pixels are unaffected and retain their current colour values. If the data length is not a multiple of 3, or there is data for more pixels than are present, the extra data is ignored.

Used to send a message that is specific to a particular device or software system.

Fields of SystemExclusive

The data block should begin with a two-byte system ID.

designers of that system are then free to define any message format for the rest of the data block.

Trait Implementations

impl Clone for Command
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Command
[src]

Formats the value using the given formatter.

impl PartialEq for Command
[src]

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

This method tests for !=.