pub enum SaveStateError {
InvalidMagic,
UnsupportedVersion(u32),
UnexpectedEof,
TrailingData,
NoCartridge,
MapperMismatch {
expected: u16,
actual: u16,
},
InvalidData(&'static str),
}Variants§
InvalidMagic
UnsupportedVersion(u32)
UnexpectedEof
TrailingData
NoCartridge
MapperMismatch
InvalidData(&'static str)
Trait Implementations§
Source§impl Debug for SaveStateError
impl Debug for SaveStateError
Source§impl Display for SaveStateError
impl Display for SaveStateError
impl Eq for SaveStateError
Source§impl Error for SaveStateError
impl Error for SaveStateError
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 SaveStateError
impl PartialEq for SaveStateError
Source§fn eq(&self, other: &SaveStateError) -> bool
fn eq(&self, other: &SaveStateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SaveStateError
Auto Trait Implementations§
impl Freeze for SaveStateError
impl RefUnwindSafe for SaveStateError
impl Send for SaveStateError
impl Sync for SaveStateError
impl Unpin for SaveStateError
impl UnsafeUnpin for SaveStateError
impl UnwindSafe for SaveStateError
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