pub struct OkV0 { /* private fields */ }Expand description
Ok message, signifying successful response to a command. Spec link.
Implementations§
Trait Implementations§
Source§impl ButtplugMessage for OkV0
impl ButtplugMessage for OkV0
Source§impl ButtplugMessageValidator for OkV0
impl ButtplugMessageValidator for OkV0
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 OkV0
impl<'de> Deserialize<'de> for OkV0
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<OkV0> for ButtplugServerMessageV1
impl From<OkV0> for ButtplugServerMessageV1
Source§fn from(msg: OkV0) -> ButtplugServerMessageV1
fn from(msg: OkV0) -> ButtplugServerMessageV1
Converts to this type from the input type.
Source§impl From<OkV0> for ButtplugServerMessageV2
impl From<OkV0> for ButtplugServerMessageV2
Source§fn from(msg: OkV0) -> ButtplugServerMessageV2
fn from(msg: OkV0) -> ButtplugServerMessageV2
Converts to this type from the input type.
Source§impl From<OkV0> for ButtplugServerMessageV3
impl From<OkV0> for ButtplugServerMessageV3
Source§fn from(msg: OkV0) -> ButtplugServerMessageV3
fn from(msg: OkV0) -> ButtplugServerMessageV3
Converts to this type from the input type.
Source§impl From<OkV0> for ButtplugServerMessageV4
impl From<OkV0> for ButtplugServerMessageV4
Source§fn from(msg: OkV0) -> ButtplugServerMessageV4
fn from(msg: OkV0) -> ButtplugServerMessageV4
Converts to this type from the input type.
impl Eq for OkV0
impl StructuralPartialEq for OkV0
Auto Trait Implementations§
impl Freeze for OkV0
impl RefUnwindSafe for OkV0
impl Send for OkV0
impl Sync for OkV0
impl Unpin for OkV0
impl UnwindSafe for OkV0
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