Skip to main content

ActuatorError

Enum ActuatorError 

Source
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>

Source§

fn clone(&self) -> ActuatorError<U>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<U: Debug + UnitSet> Debug for ActuatorError<U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<U: UnitSet> Display for ActuatorError<U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<U: UnitSet> From<ActuatorError<U>> for SimpleMeasError<U>

Source§

fn from(value: ActuatorError<U>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<U> Freeze for ActuatorError<U>
where <U as UnitSet>::Distance: Freeze, <U as UnitSet>::Velocity: Freeze, <U as UnitSet>::Acceleration: Freeze, <U as UnitSet>::Jolt: Freeze, <U as UnitSet>::Time: Freeze,

§

impl<U> RefUnwindSafe for ActuatorError<U>

§

impl<U> Send for ActuatorError<U>
where <U as UnitSet>::Distance: Send, <U as UnitSet>::Velocity: Send, <U as UnitSet>::Acceleration: Send, <U as UnitSet>::Jolt: Send, <U as UnitSet>::Time: Send,

§

impl<U> Sync for ActuatorError<U>
where <U as UnitSet>::Distance: Sync, <U as UnitSet>::Velocity: Sync, <U as UnitSet>::Acceleration: Sync, <U as UnitSet>::Jolt: Sync, <U as UnitSet>::Time: Sync,

§

impl<U> Unpin for ActuatorError<U>
where <U as UnitSet>::Distance: Unpin, <U as UnitSet>::Velocity: Unpin, <U as UnitSet>::Acceleration: Unpin, <U as UnitSet>::Jolt: Unpin, <U as UnitSet>::Time: Unpin,

§

impl<U> UnsafeUnpin for ActuatorError<U>

§

impl<U> UnwindSafe for ActuatorError<U>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.