Struct artnet_protocol::Poll [−][src]
pub struct Poll { pub version: [u8; 2], pub talk_to_me: ArtTalkToMe, pub diagnostics_priority: u8, }
Used to poll the nodes in the network
Fields
version: [u8; 2]
Determines which version the server has. Will be ARTNET_PROTOCOL_VERSION by default
talk_to_me: ArtTalkToMe
Determines how the nodes should respond
diagnostics_priority: u8
Determines the priority of the diagnostics that the nodes should send
Methods
impl Poll
[src]
impl Poll
pub fn to_bytes(&self) -> Result<Vec<u8>>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8>>
Convert this struct to a byte array.
pub fn from(data: &[u8]) -> Result<Poll>
[src]
pub fn from(data: &[u8]) -> Result<Poll>
Convert a byte array to an instance of this struct.
Trait Implementations
impl Debug for Poll
[src]
impl Debug for Poll
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Poll
[src]
impl Default for Poll