pub struct ServerDeviceFeatureOutputPositionProperties { /* private fields */ }Implementations§
Source§impl ServerDeviceFeatureOutputPositionProperties
impl ServerDeviceFeatureOutputPositionProperties
pub fn value(&self) -> &RangeWithLimit
Source§impl ServerDeviceFeatureOutputPositionProperties
impl ServerDeviceFeatureOutputPositionProperties
pub fn new( value: &RangeWithLimit, disabled: bool, reverse_position: bool, ) -> Self
pub fn calculate_scaled_float( &self, input: f64, ) -> Result<i32, ButtplugDeviceConfigError>
pub fn calculate_scaled_value( &self, input: u32, ) -> Result<u32, ButtplugDeviceConfigError>
Trait Implementations§
Source§impl Clone for ServerDeviceFeatureOutputPositionProperties
impl Clone for ServerDeviceFeatureOutputPositionProperties
Source§fn clone(&self) -> ServerDeviceFeatureOutputPositionProperties
fn clone(&self) -> ServerDeviceFeatureOutputPositionProperties
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<'de> Deserialize<'de> for ServerDeviceFeatureOutputPositionProperties
impl<'de> Deserialize<'de> for ServerDeviceFeatureOutputPositionProperties
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<&ServerDeviceFeatureOutputPositionProperties> for DeviceFeatureOutputValueProperties
impl From<&ServerDeviceFeatureOutputPositionProperties> for DeviceFeatureOutputValueProperties
Source§fn from(val: &ServerDeviceFeatureOutputPositionProperties) -> Self
fn from(val: &ServerDeviceFeatureOutputPositionProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerDeviceFeatureOutputPositionProperties
impl RefUnwindSafe for ServerDeviceFeatureOutputPositionProperties
impl Send for ServerDeviceFeatureOutputPositionProperties
impl Sync for ServerDeviceFeatureOutputPositionProperties
impl Unpin for ServerDeviceFeatureOutputPositionProperties
impl UnsafeUnpin for ServerDeviceFeatureOutputPositionProperties
impl UnwindSafe for ServerDeviceFeatureOutputPositionProperties
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