#[non_exhaustive]pub enum PpuSnapshotError {
Truncated(usize),
UnsupportedVersion(u8),
InvalidRegion(u8),
InvalidPresence(u8),
}Expand description
Errors returned by Ppu::restore.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Truncated(usize)
Blob is too short for the version-1 schema.
UnsupportedVersion(u8)
The blob’s version byte is not understood by this build.
InvalidRegion(u8)
Region tag was not one of 0 (NTSC), 1 (PAL), 2 (Dendy).
InvalidPresence(u8)
Optional struct presence byte was something other than 0 or 1.
Trait Implementations§
Source§impl Debug for PpuSnapshotError
impl Debug for PpuSnapshotError
Source§impl Display for PpuSnapshotError
impl Display for PpuSnapshotError
Source§impl Error for PpuSnapshotError
impl Error for PpuSnapshotError
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 PpuSnapshotError
impl RefUnwindSafe for PpuSnapshotError
impl Send for PpuSnapshotError
impl Sync for PpuSnapshotError
impl Unpin for PpuSnapshotError
impl UnsafeUnpin for PpuSnapshotError
impl UnwindSafe for PpuSnapshotError
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