#[non_exhaustive]pub enum RestoreError {
UnsupportedVersion {
found: u32,
supported: u32,
},
FingerprintMismatch {
expected: u64,
found: u64,
},
NumericPathMismatch {
expected: NumericPath,
found: NumericPath,
},
InvalidPhase {
found: u8,
},
InvalidSignal {
field: &'static str,
knot: usize,
domain: SignalDomain,
},
InvalidTimer {
knot: usize,
remaining: u16,
max: u16,
},
InvalidDelayHead {
knot: usize,
head: u16,
len: u16,
},
InvalidRng,
ShapeMismatch {
field: &'static str,
expected: usize,
found: usize,
},
InvalidHandleIndex {
field: &'static str,
index: u16,
len: usize,
},
}Expand description
Failure while restoring an opaque RuntimeState.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedVersion
The snapshot uses a format this runtime cannot read.
Fields
FingerprintMismatch
The snapshot belongs to an incompatible immutable executable graph.
Fields
NumericPathMismatch
The checkpoint was produced by the other compile-time signal path.
Fields
expected: NumericPathNumeric path required by the receiving runtime.
found: NumericPathNumeric path carried by the checkpoint.
InvalidPhase
The checkpoint was captured at a frame phase that cannot be restored.
InvalidSignal
A stored signal does not satisfy its declared runtime domain.
Fields
domain: SignalDomainDeclared signal domain.
InvalidTimer
A timer value is outside the duration authored for its knot.
Fields
InvalidDelayHead
A delay head is outside its immutable ring extent.
Fields
InvalidRng
The xorshift stream must never be zero.
ShapeMismatch
A mutable snapshot buffer does not fit this runtime’s bound shape.
Fields
InvalidHandleIndex
An owner-free outbox id cannot be rebuilt for this runtime.
Trait Implementations§
Source§impl Clone for RestoreError
impl Clone for RestoreError
Source§fn clone(&self) -> RestoreError
fn clone(&self) -> RestoreError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RestoreError
impl Debug for RestoreError
Source§impl Display for RestoreError
impl Display for RestoreError
impl Eq for RestoreError
Source§impl Error for RestoreError
Available on crate feature std only.
impl Error for RestoreError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()