pub struct DeviceListV4 { /* private fields */ }Expand description
List of all devices currently connected to the server.
Implementations§
Source§impl DeviceListV4
impl DeviceListV4
pub fn devices(&self) -> &Vec<DeviceMessageInfoV4>
Source§impl DeviceListV4
impl DeviceListV4
pub fn new(devices: Vec<DeviceMessageInfoV4>) -> Self
Trait Implementations§
Source§impl ButtplugMessage for DeviceListV4
impl ButtplugMessage for DeviceListV4
Source§impl ButtplugMessageValidator for DeviceListV4
impl ButtplugMessageValidator for DeviceListV4
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 DeviceListV4
impl Clone for DeviceListV4
Source§fn clone(&self) -> DeviceListV4
fn clone(&self) -> DeviceListV4
Returns a duplicate 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 DeviceListV4
impl Debug for DeviceListV4
Source§impl Default for DeviceListV4
impl Default for DeviceListV4
Source§fn default() -> DeviceListV4
fn default() -> DeviceListV4
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceListV4
impl<'de> Deserialize<'de> for DeviceListV4
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<DeviceListV4> for ButtplugServerMessageV4
impl From<DeviceListV4> for ButtplugServerMessageV4
Source§fn from(msg: DeviceListV4) -> ButtplugServerMessageV4
fn from(msg: DeviceListV4) -> ButtplugServerMessageV4
Converts to this type from the input type.
Source§impl From<DeviceListV4> for DeviceListV3
impl From<DeviceListV4> for DeviceListV3
Source§fn from(value: DeviceListV4) -> Self
fn from(value: DeviceListV4) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceListV4
impl PartialEq for DeviceListV4
Source§impl Serialize for DeviceListV4
impl Serialize for DeviceListV4
impl Eq for DeviceListV4
impl StructuralPartialEq for DeviceListV4
Auto Trait Implementations§
impl Freeze for DeviceListV4
impl RefUnwindSafe for DeviceListV4
impl Send for DeviceListV4
impl Sync for DeviceListV4
impl Unpin for DeviceListV4
impl UnwindSafe for DeviceListV4
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