Struct buttplug::core::message::ClientDeviceMessageAttributes
source · pub struct ClientDeviceMessageAttributes { /* private fields */ }Implementations§
source§impl ClientDeviceMessageAttributes
impl ClientDeviceMessageAttributes
pub fn scalar_cmd(&self) -> &Option<Vec<ClientGenericDeviceMessageAttributes>>
pub fn rotate_cmd(&self) -> &Option<Vec<ClientGenericDeviceMessageAttributes>>
pub fn linear_cmd(&self) -> &Option<Vec<ClientGenericDeviceMessageAttributes>>
pub fn sensor_read_cmd(&self) -> &Option<Vec<SensorDeviceMessageAttributes>>
pub fn sensor_subscribe_cmd( &self ) -> &Option<Vec<SensorDeviceMessageAttributes>>
pub fn stop_device_cmd(&self) -> &NullDeviceMessageAttributes
pub fn raw_read_cmd(&self) -> &Option<RawDeviceMessageAttributes>
pub fn raw_write_cmd(&self) -> &Option<RawDeviceMessageAttributes>
pub fn raw_subscribe_cmd(&self) -> &Option<RawDeviceMessageAttributes>
pub fn fleshlight_launch_fw12_cmd(&self) -> &Option<NullDeviceMessageAttributes>
pub fn vorze_a10_cyclone_cmd(&self) -> &Option<NullDeviceMessageAttributes>
source§impl ClientDeviceMessageAttributes
impl ClientDeviceMessageAttributes
pub fn raw_unsubscribe_cmd(&self) -> &Option<RawDeviceMessageAttributes>
pub fn message_allowed(&self, message_type: &ButtplugDeviceMessageType) -> bool
pub fn finalize(&mut self)
Trait Implementations§
source§impl Clone for ClientDeviceMessageAttributes
impl Clone for ClientDeviceMessageAttributes
source§fn clone(&self) -> ClientDeviceMessageAttributes
fn clone(&self) -> ClientDeviceMessageAttributes
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 Default for ClientDeviceMessageAttributes
impl Default for ClientDeviceMessageAttributes
source§fn default() -> ClientDeviceMessageAttributes
fn default() -> ClientDeviceMessageAttributes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ClientDeviceMessageAttributes
impl<'de> Deserialize<'de> for ClientDeviceMessageAttributes
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<ClientDeviceMessageAttributes> for ClientDeviceMessageAttributesV2
impl From<ClientDeviceMessageAttributes> for ClientDeviceMessageAttributesV2
source§fn from(other: ClientDeviceMessageAttributes) -> Self
fn from(other: ClientDeviceMessageAttributes) -> Self
Converts to this type from the input type.
source§impl From<ServerDeviceMessageAttributes> for ClientDeviceMessageAttributes
impl From<ServerDeviceMessageAttributes> for ClientDeviceMessageAttributes
source§fn from(attrs: ServerDeviceMessageAttributes) -> Self
fn from(attrs: ServerDeviceMessageAttributes) -> Self
Converts to this type from the input type.
source§impl PartialEq for ClientDeviceMessageAttributes
impl PartialEq for ClientDeviceMessageAttributes
source§fn eq(&self, other: &ClientDeviceMessageAttributes) -> bool
fn eq(&self, other: &ClientDeviceMessageAttributes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ClientDeviceMessageAttributes
impl StructuralEq for ClientDeviceMessageAttributes
impl StructuralPartialEq for ClientDeviceMessageAttributes
Auto Trait Implementations§
impl RefUnwindSafe for ClientDeviceMessageAttributes
impl Send for ClientDeviceMessageAttributes
impl Sync for ClientDeviceMessageAttributes
impl Unpin for ClientDeviceMessageAttributes
impl UnwindSafe for ClientDeviceMessageAttributes
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
§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
Compare self to
key and return true if they are equal.