Enum opc::Command
[−]
[src]
pub enum Command { SetPixelColors { pixels: Vec<[u8; 3]>, }, SystemExclusive { id: [u8; 2], data: Vec<u8>, }, }
Describes an OPC Command.
Variants
SetPixelColors
Contains and array of RGB values: three bytes in red, green, blue order for each pixel to set.
Fields of SetPixelColors
pixels: Vec<[u8; 3]> | 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. |
SystemExclusive
Used to send a message that is specific to a particular device or software system.
Fields of SystemExclusive
id: [u8; 2] | The data block should begin with a two-byte system ID. |
data: Vec<u8> | 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]
fn clone(&self) -> Command
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more