Struct buttplug::core::message::DeviceList
source · pub struct DeviceList { /* private fields */ }Expand description
List of all devices currently connected to the server.
Implementations§
source§impl DeviceList
impl DeviceList
pub fn devices(&self) -> &Vec<DeviceMessageInfo>
source§impl DeviceList
impl DeviceList
pub fn new(devices: Vec<DeviceMessageInfo>) -> Self
Trait Implementations§
source§impl ButtplugMessage for DeviceList
impl ButtplugMessage for DeviceList
source§impl ButtplugMessageValidator for DeviceList
impl ButtplugMessageValidator for DeviceList
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 DeviceList
impl Clone for DeviceList
source§fn clone(&self) -> DeviceList
fn clone(&self) -> DeviceList
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 DeviceList
impl Debug for DeviceList
source§impl Default for DeviceList
impl Default for DeviceList
source§fn default() -> DeviceList
fn default() -> DeviceList
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceList
impl<'de> Deserialize<'de> for DeviceList
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<DeviceList> for ButtplugServerMessage
impl From<DeviceList> for ButtplugServerMessage
source§fn from(msg: DeviceList) -> ButtplugServerMessage
fn from(msg: DeviceList) -> ButtplugServerMessage
Converts to this type from the input type.
source§impl From<DeviceList> for ButtplugSpecV3ServerMessage
impl From<DeviceList> for ButtplugSpecV3ServerMessage
source§fn from(msg: DeviceList) -> ButtplugSpecV3ServerMessage
fn from(msg: DeviceList) -> ButtplugSpecV3ServerMessage
Converts to this type from the input type.
source§impl From<DeviceList> for DeviceListV0
impl From<DeviceList> for DeviceListV0
source§fn from(msg: DeviceList) -> Self
fn from(msg: DeviceList) -> Self
Converts to this type from the input type.
source§impl From<DeviceList> for DeviceListV1
impl From<DeviceList> for DeviceListV1
source§fn from(msg: DeviceList) -> Self
fn from(msg: DeviceList) -> Self
Converts to this type from the input type.
source§impl From<DeviceList> for DeviceListV2
impl From<DeviceList> for DeviceListV2
source§fn from(msg: DeviceList) -> Self
fn from(msg: DeviceList) -> Self
Converts to this type from the input type.
source§impl PartialEq<DeviceList> for DeviceList
impl PartialEq<DeviceList> for DeviceList
source§fn eq(&self, other: &DeviceList) -> bool
fn eq(&self, other: &DeviceList) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for DeviceList
impl Serialize for DeviceList
impl Eq for DeviceList
impl StructuralEq for DeviceList
impl StructuralPartialEq for DeviceList
Auto Trait Implementations§
impl RefUnwindSafe for DeviceList
impl Send for DeviceList
impl Sync for DeviceList
impl Unpin for DeviceList
impl UnwindSafe for DeviceList
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.