Enum drv8825::SignalError
source · [−]pub enum SignalError<PinUnavailableError, PinError, TimerError> {
PinUnavailable(PinUnavailableError),
Pin(PinError),
Timer(TimerError),
}
Expand description
An error that can occur while using this API
Variants
PinUnavailable(PinUnavailableError)
A pin was not accessible
Pin(PinError)
An error originated from using the OutputPin
trait
Timer(TimerError)
An error originated from working with a timer
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.
sourcefn eq(
&self,
other: &SignalError<PinUnavailableError, PinError, TimerError>
) -> bool
fn eq(
&self,
other: &SignalError<PinUnavailableError, PinError, TimerError>
) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(
&self,
other: &SignalError<PinUnavailableError, PinError, TimerError>
) -> bool
fn ne(
&self,
other: &SignalError<PinUnavailableError, PinError, TimerError>
) -> bool
This method tests for !=
.
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.