pub struct PingV0 { /* private fields */ }Trait Implementations§
Source§impl ButtplugMessage for PingV0
impl ButtplugMessage for PingV0
Source§impl ButtplugMessageValidator for PingV0
impl ButtplugMessageValidator for PingV0
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<'de> Deserialize<'de> for PingV0
impl<'de> Deserialize<'de> for PingV0
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<PingV0> for ButtplugClientMessageV0
impl From<PingV0> for ButtplugClientMessageV0
Source§fn from(msg: PingV0) -> ButtplugClientMessageV0
fn from(msg: PingV0) -> ButtplugClientMessageV0
Converts to this type from the input type.
Source§impl From<PingV0> for ButtplugClientMessageV1
impl From<PingV0> for ButtplugClientMessageV1
Source§fn from(msg: PingV0) -> ButtplugClientMessageV1
fn from(msg: PingV0) -> ButtplugClientMessageV1
Converts to this type from the input type.
Source§impl From<PingV0> for ButtplugClientMessageV2
impl From<PingV0> for ButtplugClientMessageV2
Source§fn from(msg: PingV0) -> ButtplugClientMessageV2
fn from(msg: PingV0) -> ButtplugClientMessageV2
Converts to this type from the input type.
Source§impl From<PingV0> for ButtplugClientMessageV3
impl From<PingV0> for ButtplugClientMessageV3
Source§fn from(msg: PingV0) -> ButtplugClientMessageV3
fn from(msg: PingV0) -> ButtplugClientMessageV3
Converts to this type from the input type.
Source§impl From<PingV0> for ButtplugClientMessageV4
impl From<PingV0> for ButtplugClientMessageV4
Source§fn from(msg: PingV0) -> ButtplugClientMessageV4
fn from(msg: PingV0) -> ButtplugClientMessageV4
Converts to this type from the input type.
impl Eq for PingV0
impl StructuralPartialEq for PingV0
Auto Trait Implementations§
impl Freeze for PingV0
impl RefUnwindSafe for PingV0
impl Send for PingV0
impl Sync for PingV0
impl Unpin for PingV0
impl UnwindSafe for PingV0
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