pub enum ButtplugClientMessageV1 {
Show 13 variants
RequestServerInfo(RequestServerInfoV1),
Ping(PingV0),
StartScanning(StartScanningV0),
StopScanning(StopScanningV0),
RequestDeviceList(RequestDeviceListV0),
StopAllDevices(StopAllDevicesV0),
VibrateCmd(VibrateCmdV1),
LinearCmd(LinearCmdV1),
RotateCmd(RotateCmdV1),
StopDeviceCmd(StopDeviceCmdV0),
SingleMotorVibrateCmd(SingleMotorVibrateCmdV0),
FleshlightLaunchFW12Cmd(FleshlightLaunchFW12CmdV0),
VorzeA10CycloneCmd(VorzeA10CycloneCmdV0),
}Expand description
Represents all client-to-server messages in v1 of the Buttplug Spec
Variants§
RequestServerInfo(RequestServerInfoV1)
Ping(PingV0)
StartScanning(StartScanningV0)
StopScanning(StopScanningV0)
RequestDeviceList(RequestDeviceListV0)
StopAllDevices(StopAllDevicesV0)
VibrateCmd(VibrateCmdV1)
LinearCmd(LinearCmdV1)
RotateCmd(RotateCmdV1)
StopDeviceCmd(StopDeviceCmdV0)
SingleMotorVibrateCmd(SingleMotorVibrateCmdV0)
FleshlightLaunchFW12Cmd(FleshlightLaunchFW12CmdV0)
VorzeA10CycloneCmd(VorzeA10CycloneCmdV0)
Trait Implementations§
Source§impl ButtplugMessageValidator for ButtplugClientMessageV1
impl ButtplugMessageValidator for ButtplugClientMessageV1
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 ButtplugClientMessageV1
impl Clone for ButtplugClientMessageV1
Source§fn clone(&self) -> ButtplugClientMessageV1
fn clone(&self) -> ButtplugClientMessageV1
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 ButtplugClientMessageV1
impl Debug for ButtplugClientMessageV1
Source§impl<'de> Deserialize<'de> for ButtplugClientMessageV1
impl<'de> Deserialize<'de> for ButtplugClientMessageV1
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<ButtplugClientMessageV0> for ButtplugClientMessageV1
impl From<ButtplugClientMessageV0> for ButtplugClientMessageV1
Source§fn from(value: ButtplugClientMessageV0) -> Self
fn from(value: ButtplugClientMessageV0) -> Self
Converts to this type from the input type.
Source§impl From<ButtplugClientMessageV1> for ButtplugClientMessageVariant
impl From<ButtplugClientMessageV1> for ButtplugClientMessageVariant
Source§fn from(value: ButtplugClientMessageV1) -> Self
fn from(value: ButtplugClientMessageV1) -> Self
Converts to this type from the input type.
Source§impl From<FleshlightLaunchFW12CmdV0> for ButtplugClientMessageV1
impl From<FleshlightLaunchFW12CmdV0> for ButtplugClientMessageV1
Source§fn from(value: FleshlightLaunchFW12CmdV0) -> Self
fn from(value: FleshlightLaunchFW12CmdV0) -> Self
Converts to this type from the input type.
Source§impl From<LinearCmdV1> for ButtplugClientMessageV1
impl From<LinearCmdV1> for ButtplugClientMessageV1
Source§fn from(value: LinearCmdV1) -> Self
fn from(value: LinearCmdV1) -> Self
Converts to this type from the input type.
Source§impl From<PingV0> for ButtplugClientMessageV1
impl From<PingV0> for ButtplugClientMessageV1
Source§impl From<RequestDeviceListV0> for ButtplugClientMessageV1
impl From<RequestDeviceListV0> for ButtplugClientMessageV1
Source§fn from(value: RequestDeviceListV0) -> Self
fn from(value: RequestDeviceListV0) -> Self
Converts to this type from the input type.
Source§impl From<RequestServerInfoV1> for ButtplugClientMessageV1
impl From<RequestServerInfoV1> for ButtplugClientMessageV1
Source§fn from(value: RequestServerInfoV1) -> Self
fn from(value: RequestServerInfoV1) -> Self
Converts to this type from the input type.
Source§impl From<RotateCmdV1> for ButtplugClientMessageV1
impl From<RotateCmdV1> for ButtplugClientMessageV1
Source§fn from(value: RotateCmdV1) -> Self
fn from(value: RotateCmdV1) -> 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 From<StartScanningV0> for ButtplugClientMessageV1
impl From<StartScanningV0> for ButtplugClientMessageV1
Source§fn from(value: StartScanningV0) -> Self
fn from(value: StartScanningV0) -> Self
Converts to this type from the input type.
Source§impl From<StopAllDevicesV0> for ButtplugClientMessageV1
impl From<StopAllDevicesV0> for ButtplugClientMessageV1
Source§fn from(value: StopAllDevicesV0) -> Self
fn from(value: StopAllDevicesV0) -> Self
Converts to this type from the input type.
Source§impl From<StopDeviceCmdV0> for ButtplugClientMessageV1
impl From<StopDeviceCmdV0> for ButtplugClientMessageV1
Source§fn from(value: StopDeviceCmdV0) -> Self
fn from(value: StopDeviceCmdV0) -> Self
Converts to this type from the input type.
Source§impl From<StopScanningV0> for ButtplugClientMessageV1
impl From<StopScanningV0> for ButtplugClientMessageV1
Source§fn from(value: StopScanningV0) -> Self
fn from(value: StopScanningV0) -> Self
Converts to this type from the input type.
Source§impl From<VibrateCmdV1> for ButtplugClientMessageV1
impl From<VibrateCmdV1> for ButtplugClientMessageV1
Source§fn from(value: VibrateCmdV1) -> Self
fn from(value: VibrateCmdV1) -> Self
Converts to this type from the input type.
Source§impl From<VorzeA10CycloneCmdV0> for ButtplugClientMessageV1
impl From<VorzeA10CycloneCmdV0> for ButtplugClientMessageV1
Source§fn from(value: VorzeA10CycloneCmdV0) -> Self
fn from(value: VorzeA10CycloneCmdV0) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ButtplugClientMessageV1
impl PartialEq for ButtplugClientMessageV1
Source§impl Serialize for ButtplugClientMessageV1
impl Serialize for ButtplugClientMessageV1
Source§impl TryFrom<ButtplugClientMessageV1> for ButtplugClientMessageV2
impl TryFrom<ButtplugClientMessageV1> for ButtplugClientMessageV2
Source§type Error = ButtplugMessageError
type Error = ButtplugMessageError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ButtplugClientMessageV1
Auto Trait Implementations§
impl Freeze for ButtplugClientMessageV1
impl RefUnwindSafe for ButtplugClientMessageV1
impl Send for ButtplugClientMessageV1
impl Sync for ButtplugClientMessageV1
impl Unpin for ButtplugClientMessageV1
impl UnsafeUnpin for ButtplugClientMessageV1
impl UnwindSafe for ButtplugClientMessageV1
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