pub enum EmuError {
Empty,
Header(String),
Archive(String),
}Expand description
ROM-load / emulation errors surfaced to a host.
Variants§
Empty
The ROM image was empty.
Header(String)
No valid SNES header was found (LoROM/HiROM/ExHiROM detection failed).
Archive(String)
The image looked like a zip archive but couldn’t be opened, or contained no recognizable SNES ROM entry.
Trait Implementations§
Source§impl Error for EmuError
impl Error for EmuError
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()
Auto Trait Implementations§
impl Freeze for EmuError
impl RefUnwindSafe for EmuError
impl Send for EmuError
impl Sync for EmuError
impl Unpin for EmuError
impl UnsafeUnpin for EmuError
impl UnwindSafe for EmuError
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