#[non_exhaustive]pub enum ApuSnapshotError {
Truncated(usize),
UnsupportedVersion(u8),
InvalidRegion(u8),
InvalidMode(u8),
InvalidPresence(u8),
}Expand description
Errors returned by Apu::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 shorter than the schema declares.
UnsupportedVersion(u8)
The blob’s version byte is not understood by this build.
InvalidRegion(u8)
Region tag was not 0/1/2.
InvalidMode(u8)
Frame-counter mode tag was not 0/1.
InvalidPresence(u8)
Optional sample-buffer presence byte was not 0/1.
Trait Implementations§
Source§impl Debug for ApuSnapshotError
impl Debug for ApuSnapshotError
Source§impl Display for ApuSnapshotError
impl Display for ApuSnapshotError
Source§impl Error for ApuSnapshotError
impl Error for ApuSnapshotError
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 ApuSnapshotError
impl RefUnwindSafe for ApuSnapshotError
impl Send for ApuSnapshotError
impl Sync for ApuSnapshotError
impl Unpin for ApuSnapshotError
impl UnsafeUnpin for ApuSnapshotError
impl UnwindSafe for ApuSnapshotError
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