[−][src]Trait galaxy_buds_live_rs::message::Payload
Msg defines the trait which need to be implemented by an inner message (msg).
Required methods
Loading content...Provided methods
fn get_data(&self) -> Vec<u8>
The payload data encoded for sending
fn is_response(&self) -> bool
fn to_byte_array(&self) -> Vec<u8>
Create a message byte array from a message. This is required to send a message to the buds.
fn create_header(&self, i: i32) -> [u8; 2]
Create a header for the message