Struct buttplug::core::message::RSSILevelCmd
source · pub struct RSSILevelCmd { /* private fields */ }Implementations§
Trait Implementations§
source§impl ButtplugDeviceMessage for RSSILevelCmd
impl ButtplugDeviceMessage for RSSILevelCmd
fn device_index(&self) -> u32
fn set_device_index(&mut self, id: u32)
source§impl ButtplugMessage for RSSILevelCmd
impl ButtplugMessage for RSSILevelCmd
source§impl ButtplugMessageValidator for RSSILevelCmd
impl ButtplugMessageValidator for RSSILevelCmd
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 RSSILevelCmd
impl Clone for RSSILevelCmd
source§fn clone(&self) -> RSSILevelCmd
fn clone(&self) -> RSSILevelCmd
Returns a copy 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 RSSILevelCmd
impl Debug for RSSILevelCmd
source§impl<'de> Deserialize<'de> for RSSILevelCmd
impl<'de> Deserialize<'de> for RSSILevelCmd
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<RSSILevelCmd> for ButtplugClientMessage
impl From<RSSILevelCmd> for ButtplugClientMessage
source§fn from(msg: RSSILevelCmd) -> ButtplugClientMessage
fn from(msg: RSSILevelCmd) -> ButtplugClientMessage
Converts to this type from the input type.
source§impl From<RSSILevelCmd> for ButtplugDeviceCommandMessageUnion
impl From<RSSILevelCmd> for ButtplugDeviceCommandMessageUnion
source§fn from(msg: RSSILevelCmd) -> ButtplugDeviceCommandMessageUnion
fn from(msg: RSSILevelCmd) -> ButtplugDeviceCommandMessageUnion
Converts to this type from the input type.
source§impl From<RSSILevelCmd> for ButtplugSpecV2ClientMessage
impl From<RSSILevelCmd> for ButtplugSpecV2ClientMessage
source§fn from(msg: RSSILevelCmd) -> ButtplugSpecV2ClientMessage
fn from(msg: RSSILevelCmd) -> ButtplugSpecV2ClientMessage
Converts to this type from the input type.
source§impl PartialEq<RSSILevelCmd> for RSSILevelCmd
impl PartialEq<RSSILevelCmd> for RSSILevelCmd
source§fn eq(&self, other: &RSSILevelCmd) -> bool
fn eq(&self, other: &RSSILevelCmd) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RSSILevelCmd
impl Serialize for RSSILevelCmd
impl Eq for RSSILevelCmd
impl StructuralEq for RSSILevelCmd
impl StructuralPartialEq for RSSILevelCmd
Auto Trait Implementations§
impl RefUnwindSafe for RSSILevelCmd
impl Send for RSSILevelCmd
impl Sync for RSSILevelCmd
impl Unpin for RSSILevelCmd
impl UnwindSafe for RSSILevelCmd
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.