pub enum ArtCommand {
Show 35 variants Poll(Poll), PollReply(Box<PollReply>), DiagData, Command, Output(Output), Nzs, Sync, Address, Input, TodRequest, TodData, TodControl, Rdm, RdmSub, VideoSetup, VideoPalette, VideoData, MacMaster, MacSlave, FirmwareMaster, FirmwareReply, FileTnMaster, FileFnMaster, FileFnReply, OpIpProg, OpIpProgReply, OpMedia, OpMediaPatch, OpMediaControl, OpMediaControlReply, OpTimeCode, OpTimeSync, OpTrigger, OpDirectory, OpDirectoryReply,
}
Expand description

The ArtCommand, to be used for ArtNet.

This struct implements an write_to_buffer and from_buffer function, to be used with UDP connections.

Variants§

§

Poll(Poll)

A poll command, used to discover devices on the network

§

PollReply(Box<PollReply>)

A reply to the poll command, it contains device status information

§

DiagData

[Not implemented] Diagnostics and data logging packet

§

Command

[Not implemented] Used to send text based parameter commands

§

Output(Output)

An ArtDmx data packet. Used to send actual data to a node in the network

§

Nzs

[Not implemented] This is an ArtNzs data packet. It contains non-zero start code (except RDM) DMX512 information for a single Universe

§

Sync

[Not implemented] This is an ArtSync data packet. It is used to force synchronous transfer of ArtDmx packets to a node’s output

§

Address

[Not implemented] This is an ArtAddress packet. It contains remote programming information for a Node.

§

Input

[Not implemented] This is an ArtInput packet. It contains enable – disable data for DMX inputs

§

TodRequest

[Not implemented] This is an ArtTodRequest packet. It is used to request a Table of Devices (ToD) for RDM discovery.

§

TodData

[Not implemented] This is an ArtTodData packet. It is used to send a Table of Devices (ToD) for RDM discovery

§

TodControl

[Not implemented] This is an ArtTodControl packet. It is used to send RDM discovery control messages.

§

Rdm

[Not implemented] This is an ArtRdm packet. It is used to send all non discovery RDM messages

§

RdmSub

[Not implemented] This is an ArtRdmSub packet. It is used to send compressed, RDM Sub-Device data.

§

VideoSetup

[Not implemented] This is an ArtVideoSetup packet. It contains video screen setup information for nodes that implement the extended video features.

§

VideoPalette

[Not implemented] This is an ArtVideoPalette packet. It contains colour palette setup information for nodes that implement the extended video features.

§

VideoData

[Not implemented] This is an ArtVideoData packet. It contains display data for nodes that implement the extended video features.

§

MacMaster

[Not implemented] This packet is deprecated

§

MacSlave

[Not implemented] This packet is deprecated

§

FirmwareMaster

[Not implemented] This is an ArtFirmwareMaster packet. It is used to upload new firmware or firmware extensions to the Node.

§

FirmwareReply

[Not implemented] This is an ArtFirmwareReply packet. It is returned by the node to acknowledge receipt of an ArtFirmwareMaster packet or ArtFileTnMaster packet.

§

FileTnMaster

[Not implemented] Uploads user file to node.

§

FileFnMaster

[Not implemented] Downloads user file from node

§

FileFnReply

[Not implemented] Server to Node acknowledge for download packets

§

OpIpProg

[Not implemented] This is an ArtIpProg packet. It is used to reprogramme the IP address and Mask of the Node

§

OpIpProgReply

[Not implemented] This is an ArtIpProgReply packet. It is returned by the node to acknowledge receipt of an ArtIpProg packet.

§

OpMedia

[Not implemented] This is an ArtMedia packet. It is Unicast by a Media Server and acted upon by a Controller

§

OpMediaPatch

[Not implemented] This is an ArtMediaPatch packet. It is Unicast by a Controller and acted upon by a Media Server

§

OpMediaControl

[Not implemented] This is an ArtMediaControl packet. It is Unicast by a Controller and acted upon by a Media Server.

§

OpMediaControlReply

[Not implemented] This is an ArtMediaControlReply packet. It is Unicast by a Media Server and acted upon by a Controller

§

OpTimeCode

[Not implemented] This is an ArtTimeCode packet. It is used to transport time code over the network

§

OpTimeSync

[Not implemented] Used to synchronise real time date and clock

§

OpTrigger

[Not implemented] Used to send trigger macros

§

OpDirectory

[Not implemented] Requests a node’s file list

§

OpDirectoryReply

[Not implemented] Replies to OpDirectory with file list

Implementations§

source§

impl ArtCommand

source

pub fn write_to_buffer(self) -> Result<Vec<u8>>

Convert an ArtCommand in a byte buffer, which can be send to an UDP socket.

source

pub fn from_buffer(buffer: &[u8]) -> Result<ArtCommand>

Convert an a byte buffer to a command.

Trait Implementations§

source§

impl Debug for ArtCommand

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.