#[repr(u8)]pub enum ModuleError {
Busy = 1,
Sleeping = 2,
SerialRxError = 3,
Checksum = 4,
TrackNotInScope = 5,
TrackNotFound = 6,
InsertionError = 7,
EnterSleep = 8,
}
Expand description
Error codes reported by the DFPlayer module
Variants§
Busy = 1
Module is currently busy
Sleeping = 2
Module is in sleep mode
SerialRxError = 3
Serial receive error occurred
Checksum = 4
Checksum validation failed
TrackNotInScope = 5
Requested track is out of valid range
TrackNotFound = 6
Track was not found on the media
InsertionError = 7
Error inserting file/track
EnterSleep = 8
Module entering sleep mode
Trait Implementations§
Source§impl Clone for ModuleError
impl Clone for ModuleError
Source§fn clone(&self) -> ModuleError
fn clone(&self) -> ModuleError
Returns a copy 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 Debug for ModuleError
impl Debug for ModuleError
Source§impl TryFrom<u8> for ModuleError
impl TryFrom<u8> for ModuleError
impl Copy for ModuleError
Auto Trait Implementations§
impl Freeze for ModuleError
impl RefUnwindSafe for ModuleError
impl Send for ModuleError
impl Sync for ModuleError
impl Unpin for ModuleError
impl UnwindSafe for ModuleError
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