pub struct DeviceFeatureSensor { /* private fields */ }Implementations§
Source§impl DeviceFeatureSensor
impl DeviceFeatureSensor
pub fn value_range(&self) -> &Vec<RangeInclusive<i32>>
pub fn messages(&self) -> &HashSet<ButtplugSensorFeatureMessageType>
Source§impl DeviceFeatureSensor
impl DeviceFeatureSensor
pub fn new( value_range: &Vec<RangeInclusive<i32>>, messages: &HashSet<ButtplugSensorFeatureMessageType>, ) -> Self
Trait Implementations§
Source§impl Clone for DeviceFeatureSensor
impl Clone for DeviceFeatureSensor
Source§fn clone(&self) -> DeviceFeatureSensor
fn clone(&self) -> DeviceFeatureSensor
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 DeviceFeatureSensor
impl Debug for DeviceFeatureSensor
Source§impl Default for DeviceFeatureSensor
impl Default for DeviceFeatureSensor
Source§fn default() -> DeviceFeatureSensor
fn default() -> DeviceFeatureSensor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceFeatureSensor
impl<'de> Deserialize<'de> for DeviceFeatureSensor
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 for DeviceFeatureSensor
impl PartialEq for DeviceFeatureSensor
Source§impl Serialize for DeviceFeatureSensor
impl Serialize for DeviceFeatureSensor
impl Eq for DeviceFeatureSensor
impl StructuralPartialEq for DeviceFeatureSensor
Auto Trait Implementations§
impl Freeze for DeviceFeatureSensor
impl RefUnwindSafe for DeviceFeatureSensor
impl Send for DeviceFeatureSensor
impl Sync for DeviceFeatureSensor
impl Unpin for DeviceFeatureSensor
impl UnwindSafe for DeviceFeatureSensor
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