pub enum Error<PinUnavailableError, PinError, DelayToTicksError, TimerError> {
Signal(SignalError<PinUnavailableError, PinError, TimerError>),
MotionControl(Error<PinUnavailableError, PinError, PinUnavailableError, PinError, TimerError, DelayToTicksError>),
}
Expand description
Unified error type
Unifies the two types of errors that can happen while using Stepper
:
Signal errors and motion control errors.
Variants
Signal(SignalError<PinUnavailableError, PinError, TimerError>)
A signal error
MotionControl(Error<PinUnavailableError, PinError, PinUnavailableError, PinError, TimerError, DelayToTicksError>)
A motion control error
Trait Implementations
sourcefn from(
err: SignalError<PinUnavailableError, PinError, TimerError>
) -> Error<PinUnavailableError, PinError, DelayToTicksError, TimerError>
fn from(
err: SignalError<PinUnavailableError, PinError, TimerError>
) -> Error<PinUnavailableError, PinError, DelayToTicksError, TimerError>
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourcefn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourcefn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourcefn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourcefn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
type Output = T
type Output = T
Should always be Self
sourcefn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourcefn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
sourcefn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.