[−][src]Trait buttplug::core::messages::ButtplugMessage
Base trait for all Buttplug Protocol Message Structs. Handles management of message ids, as well as implementing conveinence functions for converting between message structs and various message enums, serialization, etc...
Required methods
fn get_id(&self) -> u32
Returns the id number of the message
fn set_id(&mut self, id: u32)
Sets the id number of the message.
Provided methods
fn is_server_event(&self) -> bool
True if the message is an event (message id of 0) from the server.