pub struct SingleMotorVibrateCmdV0 { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ButtplugDeviceMessage for SingleMotorVibrateCmdV0
impl ButtplugDeviceMessage for SingleMotorVibrateCmdV0
fn device_index(&self) -> u32
fn set_device_index(&mut self, device_index: u32)
Source§impl ButtplugMessageValidator for SingleMotorVibrateCmdV0
impl ButtplugMessageValidator for SingleMotorVibrateCmdV0
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 SingleMotorVibrateCmdV0
impl Clone for SingleMotorVibrateCmdV0
Source§fn clone(&self) -> SingleMotorVibrateCmdV0
fn clone(&self) -> SingleMotorVibrateCmdV0
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 SingleMotorVibrateCmdV0
impl Debug for SingleMotorVibrateCmdV0
Source§impl<'de> Deserialize<'de> for SingleMotorVibrateCmdV0
impl<'de> Deserialize<'de> for SingleMotorVibrateCmdV0
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<SingleMotorVibrateCmdV0> for ButtplugClientMessageV0
impl From<SingleMotorVibrateCmdV0> for ButtplugClientMessageV0
Source§fn from(value: SingleMotorVibrateCmdV0) -> Self
fn from(value: SingleMotorVibrateCmdV0) -> Self
Converts to this type from the input type.
Source§impl From<SingleMotorVibrateCmdV0> for ButtplugClientMessageV1
impl From<SingleMotorVibrateCmdV0> for ButtplugClientMessageV1
Source§fn from(value: SingleMotorVibrateCmdV0) -> Self
fn from(value: SingleMotorVibrateCmdV0) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SingleMotorVibrateCmdV0
impl PartialEq for SingleMotorVibrateCmdV0
Source§impl Serialize for SingleMotorVibrateCmdV0
impl Serialize for SingleMotorVibrateCmdV0
impl StructuralPartialEq for SingleMotorVibrateCmdV0
Auto Trait Implementations§
impl Freeze for SingleMotorVibrateCmdV0
impl RefUnwindSafe for SingleMotorVibrateCmdV0
impl Send for SingleMotorVibrateCmdV0
impl Sync for SingleMotorVibrateCmdV0
impl Unpin for SingleMotorVibrateCmdV0
impl UnsafeUnpin for SingleMotorVibrateCmdV0
impl UnwindSafe for SingleMotorVibrateCmdV0
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