pub enum ButtplugServerMessageV0 {
Ok(OkV0),
Error(ErrorV0),
Log(LogV0),
ServerInfo(ServerInfoV0),
DeviceList(DeviceListV0),
DeviceAdded(DeviceAddedV0),
DeviceRemoved(DeviceRemovedV0),
ScanningFinished(ScanningFinishedV0),
}Expand description
Represents all server-to-client messages in v0 of the Buttplug Spec
Variants§
Ok(OkV0)
Error(ErrorV0)
Log(LogV0)
ServerInfo(ServerInfoV0)
DeviceList(DeviceListV0)
DeviceAdded(DeviceAddedV0)
DeviceRemoved(DeviceRemovedV0)
ScanningFinished(ScanningFinishedV0)
Trait Implementations§
Source§impl ButtplugMessageValidator for ButtplugServerMessageV0
impl ButtplugMessageValidator for ButtplugServerMessageV0
Source§fn is_valid(&self) -> Result<(), ButtplugMessageError>
fn is_valid(&self) -> Result<(), ButtplugMessageError>
Returns () if the message is valid, otherwise returns a message error.
fn is_system_id(&self, id: u32) -> Result<(), ButtplugMessageError>
fn is_not_system_id(&self, id: u32) -> Result<(), ButtplugMessageError>
fn is_in_command_range( &self, value: f64, error_msg: String, ) -> Result<(), ButtplugMessageError>
Source§impl Clone for ButtplugServerMessageV0
impl Clone for ButtplugServerMessageV0
Source§fn clone(&self) -> ButtplugServerMessageV0
fn clone(&self) -> ButtplugServerMessageV0
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtplugServerMessageV0
impl Debug for ButtplugServerMessageV0
Source§impl<'de> Deserialize<'de> for ButtplugServerMessageV0
impl<'de> Deserialize<'de> for ButtplugServerMessageV0
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ButtplugServerMessageV0> for ButtplugServerMessageVariant
impl From<ButtplugServerMessageV0> for ButtplugServerMessageVariant
Source§fn from(value: ButtplugServerMessageV0) -> Self
fn from(value: ButtplugServerMessageV0) -> Self
Converts to this type from the input type.
Source§impl From<ButtplugServerMessageV1> for ButtplugServerMessageV0
impl From<ButtplugServerMessageV1> for ButtplugServerMessageV0
Source§fn from(value: ButtplugServerMessageV1) -> Self
fn from(value: ButtplugServerMessageV1) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ButtplugServerMessageV0
impl PartialEq for ButtplugServerMessageV0
Source§impl Serialize for ButtplugServerMessageV0
impl Serialize for ButtplugServerMessageV0
impl StructuralPartialEq for ButtplugServerMessageV0
Auto Trait Implementations§
impl Freeze for ButtplugServerMessageV0
impl RefUnwindSafe for ButtplugServerMessageV0
impl Send for ButtplugServerMessageV0
impl Sync for ButtplugServerMessageV0
impl Unpin for ButtplugServerMessageV0
impl UnwindSafe for ButtplugServerMessageV0
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more