#[non_exhaustive]pub enum ExtractError {
NothingGiven,
Load(LoadError),
VersionsDiffer {
save: u32,
persistent: u32,
},
}Expand description
Why the schema could not be taken out of a save.
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.
NothingGiven
Neither a save nor persistent data was given.
Load(LoadError)
The bytes cannot be read (bad magic, old format version, bad checksum, …).
VersionsDiffer
The save and the persistent data have different schema versions.
Trait Implementations§
Source§impl Clone for ExtractError
impl Clone for ExtractError
Source§impl Debug for ExtractError
impl Debug for ExtractError
impl Eq for ExtractError
Source§impl PartialEq for ExtractError
impl PartialEq for ExtractError
impl StructuralPartialEq for ExtractError
Auto Trait Implementations§
impl Forget for ExtractError
impl Freeze for ExtractError
impl Move for ExtractError
impl RefUnwindSafe for ExtractError
impl Send for ExtractError
impl Sync for ExtractError
impl Unpin for ExtractError
impl UnsafeUnpin for ExtractError
impl UnwindSafe for ExtractError
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