pub struct RawSubscribeCmdV2 { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ButtplugDeviceMessage for RawSubscribeCmdV2
impl ButtplugDeviceMessage for RawSubscribeCmdV2
fn device_index(&self) -> u32
fn set_device_index(&mut self, id: u32)
Source§impl ButtplugMessage for RawSubscribeCmdV2
impl ButtplugMessage for RawSubscribeCmdV2
Source§impl ButtplugMessageValidator for RawSubscribeCmdV2
impl ButtplugMessageValidator for RawSubscribeCmdV2
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 RawSubscribeCmdV2
impl Clone for RawSubscribeCmdV2
Source§fn clone(&self) -> RawSubscribeCmdV2
fn clone(&self) -> RawSubscribeCmdV2
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 RawSubscribeCmdV2
impl Debug for RawSubscribeCmdV2
Source§impl<'de> Deserialize<'de> for RawSubscribeCmdV2
impl<'de> Deserialize<'de> for RawSubscribeCmdV2
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<RawSubscribeCmdV2> for ButtplugClientMessageV2
impl From<RawSubscribeCmdV2> for ButtplugClientMessageV2
Source§fn from(msg: RawSubscribeCmdV2) -> ButtplugClientMessageV2
fn from(msg: RawSubscribeCmdV2) -> ButtplugClientMessageV2
Converts to this type from the input type.
Source§impl From<RawSubscribeCmdV2> for ButtplugClientMessageV3
impl From<RawSubscribeCmdV2> for ButtplugClientMessageV3
Source§fn from(msg: RawSubscribeCmdV2) -> ButtplugClientMessageV3
fn from(msg: RawSubscribeCmdV2) -> ButtplugClientMessageV3
Converts to this type from the input type.
Source§impl From<RawSubscribeCmdV2> for ButtplugClientMessageV4
impl From<RawSubscribeCmdV2> for ButtplugClientMessageV4
Source§fn from(msg: RawSubscribeCmdV2) -> ButtplugClientMessageV4
fn from(msg: RawSubscribeCmdV2) -> ButtplugClientMessageV4
Converts to this type from the input type.
Source§impl From<RawSubscribeCmdV2> for ButtplugDeviceCommandMessageUnion
impl From<RawSubscribeCmdV2> for ButtplugDeviceCommandMessageUnion
Source§fn from(msg: RawSubscribeCmdV2) -> ButtplugDeviceCommandMessageUnion
fn from(msg: RawSubscribeCmdV2) -> ButtplugDeviceCommandMessageUnion
Converts to this type from the input type.
Source§impl From<RawSubscribeCmdV2> for HardwareCommand
impl From<RawSubscribeCmdV2> for HardwareCommand
Source§fn from(msg: RawSubscribeCmdV2) -> Self
fn from(msg: RawSubscribeCmdV2) -> Self
Converts to this type from the input type.
Source§impl From<RawSubscribeCmdV2> for HardwareSubscribeCmd
impl From<RawSubscribeCmdV2> for HardwareSubscribeCmd
Source§fn from(msg: RawSubscribeCmdV2) -> Self
fn from(msg: RawSubscribeCmdV2) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RawSubscribeCmdV2
impl PartialEq for RawSubscribeCmdV2
Source§impl Serialize for RawSubscribeCmdV2
impl Serialize for RawSubscribeCmdV2
impl Eq for RawSubscribeCmdV2
impl StructuralPartialEq for RawSubscribeCmdV2
Auto Trait Implementations§
impl Freeze for RawSubscribeCmdV2
impl RefUnwindSafe for RawSubscribeCmdV2
impl Send for RawSubscribeCmdV2
impl Sync for RawSubscribeCmdV2
impl Unpin for RawSubscribeCmdV2
impl UnwindSafe for RawSubscribeCmdV2
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