Enum buttplug::core::message::ButtplugSpecV0ServerMessage
source · pub enum ButtplugSpecV0ServerMessage {
Ok(Ok),
Error(ErrorV0),
Log(Log),
ServerInfo(ServerInfoV0),
DeviceList(DeviceListV0),
DeviceAdded(DeviceAddedV0),
DeviceRemoved(DeviceRemoved),
ScanningFinished(ScanningFinished),
}Expand description
Represents all server-to-client messages in v0 of the Buttplug Spec
Variants§
Ok(Ok)
Error(ErrorV0)
Log(Log)
ServerInfo(ServerInfoV0)
DeviceList(DeviceListV0)
DeviceAdded(DeviceAddedV0)
DeviceRemoved(DeviceRemoved)
ScanningFinished(ScanningFinished)
Trait Implementations§
source§impl ButtplugMessageValidator for ButtplugSpecV0ServerMessage
impl ButtplugMessageValidator for ButtplugSpecV0ServerMessage
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 ButtplugSpecV0ServerMessage
impl Clone for ButtplugSpecV0ServerMessage
source§fn clone(&self) -> ButtplugSpecV0ServerMessage
fn clone(&self) -> ButtplugSpecV0ServerMessage
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 ButtplugSpecV0ServerMessage
impl Debug for ButtplugSpecV0ServerMessage
source§impl<'de> Deserialize<'de> for ButtplugSpecV0ServerMessage
impl<'de> Deserialize<'de> for ButtplugSpecV0ServerMessage
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 PartialEq<ButtplugSpecV0ServerMessage> for ButtplugSpecV0ServerMessage
impl PartialEq<ButtplugSpecV0ServerMessage> for ButtplugSpecV0ServerMessage
source§fn eq(&self, other: &ButtplugSpecV0ServerMessage) -> bool
fn eq(&self, other: &ButtplugSpecV0ServerMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<ButtplugServerMessage> for ButtplugSpecV0ServerMessage
impl TryFrom<ButtplugServerMessage> for ButtplugSpecV0ServerMessage
§type Error = ButtplugMessageError
type Error = ButtplugMessageError
The type returned in the event of a conversion error.
source§fn try_from(msg: ButtplugServerMessage) -> Result<Self, ButtplugMessageError>
fn try_from(msg: ButtplugServerMessage) -> Result<Self, ButtplugMessageError>
Performs the conversion.
impl ButtplugServerMessageType for ButtplugSpecV0ServerMessage
impl Eq for ButtplugSpecV0ServerMessage
impl StructuralEq for ButtplugSpecV0ServerMessage
impl StructuralPartialEq for ButtplugSpecV0ServerMessage
Auto Trait Implementations§
impl RefUnwindSafe for ButtplugSpecV0ServerMessage
impl Send for ButtplugSpecV0ServerMessage
impl Sync for ButtplugSpecV0ServerMessage
impl Unpin for ButtplugSpecV0ServerMessage
impl UnwindSafe for ButtplugSpecV0ServerMessage
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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.