pub enum MotorDriverError {
GpioError,
UnableToSetDuty,
PwmLocked,
InvalidRange,
}
Expand description
Represents all possible errors that may occur during the utilization of this crate.
Variants§
GpioError
Returned when fail to set pin low/high.
UnableToSetDuty
Returned when fail to set duty value.
PwmLocked
Returned when we are unable to acquire mutex lock.
InvalidRange
Returned when in PWM mode and a duty value is not within 0-100 range.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MotorDriverError
impl RefUnwindSafe for MotorDriverError
impl Send for MotorDriverError
impl Sync for MotorDriverError
impl Unpin for MotorDriverError
impl UnwindSafe for MotorDriverError
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