pub enum ActuatorError<U: UnitSet = Rotary> {
InvaldRelativeDistance(U::Distance),
InvalidVelocity(U::Velocity),
VelocityTooHigh(U::Velocity, U::Velocity),
InvalidAcceleration(U::Acceleration),
InvalidJolt(U::Jolt),
InvalidTime(U::Time),
IOError,
Overload,
}Expand description
General Error type for SyncActuators
Variants§
InvaldRelativeDistance(U::Distance)
The rel_dist distance given is invalid
InvalidVelocity(U::Velocity)
The velocity given is invalid somehow, depending on the context (see the function description)
VelocityTooHigh(U::Velocity, U::Velocity)
The velocity given is too high, depending on the context, see the function description
- 0: [U::Velocity] - The given velocity
- 1: [U::Velocity] - The maximum velocity
InvalidAcceleration(U::Acceleration)
The [Acceleration] given is invalid somehow, depending on the context (see the function description)
InvalidJolt(U::Jolt)
The Jolt given is invalid somehow, depending on the context (see the function description)
InvalidTime(U::Time)
The Time given is invalid somehow, depending on the context, see the function description
IOError
Something is wrong with the IO connections of the actuator (PINs etc.)
Overload
The component has been overloaded
Trait Implementations§
Source§impl<U: Clone + UnitSet> Clone for ActuatorError<U>
impl<U: Clone + UnitSet> Clone for ActuatorError<U>
Source§fn clone(&self) -> ActuatorError<U>
fn clone(&self) -> ActuatorError<U>
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<U: UnitSet> Display for ActuatorError<U>
impl<U: UnitSet> Display for ActuatorError<U>
Source§impl<U: UnitSet> From<ActuatorError<U>> for SimpleMeasError<U>
impl<U: UnitSet> From<ActuatorError<U>> for SimpleMeasError<U>
Source§fn from(value: ActuatorError<U>) -> Self
fn from(value: ActuatorError<U>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<U> Freeze for ActuatorError<U>
impl<U> RefUnwindSafe for ActuatorError<U>where
<U as UnitSet>::Distance: RefUnwindSafe,
<U as UnitSet>::Velocity: RefUnwindSafe,
<U as UnitSet>::Acceleration: RefUnwindSafe,
<U as UnitSet>::Jolt: RefUnwindSafe,
<U as UnitSet>::Time: RefUnwindSafe,
impl<U> Send for ActuatorError<U>
impl<U> Sync for ActuatorError<U>
impl<U> Unpin for ActuatorError<U>
impl<U> UnsafeUnpin for ActuatorError<U>where
<U as UnitSet>::Distance: UnsafeUnpin,
<U as UnitSet>::Velocity: UnsafeUnpin,
<U as UnitSet>::Acceleration: UnsafeUnpin,
<U as UnitSet>::Jolt: UnsafeUnpin,
<U as UnitSet>::Time: UnsafeUnpin,
impl<U> UnwindSafe for ActuatorError<U>where
<U as UnitSet>::Distance: UnwindSafe,
<U as UnitSet>::Velocity: UnwindSafe,
<U as UnitSet>::Acceleration: UnwindSafe,
<U as UnitSet>::Jolt: UnwindSafe,
<U as UnitSet>::Time: UnwindSafe,
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