pub struct SoftLimits {
pub min: Degrees,
pub max: Degrees,
pub policy: LimitPolicy,
}Expand description
Soft limits in degrees (from configuration).
Fields§
§min: DegreesMinimum allowed position in degrees.
max: DegreesMaximum allowed position in degrees.
policy: LimitPolicyWhat to do when limit is exceeded.
Implementations§
Source§impl SoftLimits
impl SoftLimits
Sourcepub fn new(min: Degrees, max: Degrees, policy: LimitPolicy) -> Self
pub fn new(min: Degrees, max: Degrees, policy: LimitPolicy) -> Self
Create new soft limits.
Trait Implementations§
Source§impl Clone for SoftLimits
impl Clone for SoftLimits
Source§fn clone(&self) -> SoftLimits
fn clone(&self) -> SoftLimits
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 SoftLimits
impl Debug for SoftLimits
Source§impl<'de> Deserialize<'de> for SoftLimits
impl<'de> Deserialize<'de> for SoftLimits
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
Auto Trait Implementations§
impl Freeze for SoftLimits
impl RefUnwindSafe for SoftLimits
impl Send for SoftLimits
impl Sync for SoftLimits
impl Unpin for SoftLimits
impl UnwindSafe for SoftLimits
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