pub struct DeviceFeatureActuator { /* private fields */ }Implementations§
Source§impl DeviceFeatureActuator
impl DeviceFeatureActuator
pub fn step_range(&self) -> &RangeInclusive<u32>
pub fn step_limit(&self) -> &RangeInclusive<u32>
pub fn messages(&self) -> &HashSet<ButtplugActuatorFeatureMessageType>
Source§impl DeviceFeatureActuator
impl DeviceFeatureActuator
pub fn new( step_range: &RangeInclusive<u32>, step_limit: &RangeInclusive<u32>, messages: &HashSet<ButtplugActuatorFeatureMessageType>, ) -> Self
pub fn is_valid(&self) -> Result<(), ButtplugDeviceError>
Trait Implementations§
Source§impl Clone for DeviceFeatureActuator
impl Clone for DeviceFeatureActuator
Source§fn clone(&self) -> DeviceFeatureActuator
fn clone(&self) -> DeviceFeatureActuator
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 DeviceFeatureActuator
impl Debug for DeviceFeatureActuator
Source§impl<'de> Deserialize<'de> for DeviceFeatureActuator
impl<'de> Deserialize<'de> for DeviceFeatureActuator
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 DeviceFeatureActuator
impl PartialEq for DeviceFeatureActuator
Source§impl Serialize for DeviceFeatureActuator
impl Serialize for DeviceFeatureActuator
impl Eq for DeviceFeatureActuator
impl StructuralPartialEq for DeviceFeatureActuator
Auto Trait Implementations§
impl Freeze for DeviceFeatureActuator
impl RefUnwindSafe for DeviceFeatureActuator
impl Send for DeviceFeatureActuator
impl Sync for DeviceFeatureActuator
impl Unpin for DeviceFeatureActuator
impl UnwindSafe for DeviceFeatureActuator
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