pub enum BarcodeScanError {
Malformed(BarcodeError),
NoReader,
}Expand description
Why Nes::scan_barcode refused a scan.
Variants§
Malformed(BarcodeError)
The string is not a valid 13- or 8-digit JAN / EAN code.
NoReader
The cartridge has no barcode reader (only the Datach, mapper 157, does).
Trait Implementations§
Source§impl Clone for BarcodeScanError
impl Clone for BarcodeScanError
impl Copy for BarcodeScanError
Source§impl Debug for BarcodeScanError
impl Debug for BarcodeScanError
Source§impl Display for BarcodeScanError
impl Display for BarcodeScanError
impl Eq for BarcodeScanError
Source§impl Error for BarcodeScanError
impl Error for BarcodeScanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BarcodeScanError
impl PartialEq for BarcodeScanError
impl StructuralPartialEq for BarcodeScanError
Auto Trait Implementations§
impl Freeze for BarcodeScanError
impl RefUnwindSafe for BarcodeScanError
impl Send for BarcodeScanError
impl Sync for BarcodeScanError
impl Unpin for BarcodeScanError
impl UnsafeUnpin for BarcodeScanError
impl UnwindSafe for BarcodeScanError
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