pub enum SnapshotLoadError {
BadMagic,
UnsupportedVersion(u32),
Decode(String),
Restore(FromSnapshotError),
}Expand description
Errors from Scene::load_snapshot.
Variants§
BadMagic
The bytes don’t start with SNAPSHOT_MAGIC — not a roxlap
snapshot (or a pre-QE.5 bare-bincode save; see the
Scene::load_snapshot migration note).
UnsupportedVersion(u32)
A snapshot from a newer (or unknown) wire version.
Decode(String)
The payload failed to decode (truncated / corrupted bytes).
Restore(FromSnapshotError)
The payload decoded but a chunk failed to restore.
Trait Implementations§
Source§impl Debug for SnapshotLoadError
impl Debug for SnapshotLoadError
Source§impl Display for SnapshotLoadError
impl Display for SnapshotLoadError
Source§impl Error for SnapshotLoadError
impl Error for SnapshotLoadError
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 SnapshotLoadError
impl RefUnwindSafe for SnapshotLoadError
impl Send for SnapshotLoadError
impl Sync for SnapshotLoadError
impl Unpin for SnapshotLoadError
impl UnsafeUnpin for SnapshotLoadError
impl UnwindSafe for SnapshotLoadError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more