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