#[non_exhaustive]pub enum ReplayError {
EmptyTrace,
OutOfOrderEvent {
index: usize,
},
ZeroTarget {
index: usize,
},
NonContiguousSteps {
declared: u16,
last_step: u32,
},
CapacityExceeded {
declared: u16,
provided: u32,
},
}Expand description
v0.2.2 T5: errors emitted by the trace-replay re-derivation path.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyTrace
The trace was empty; nothing to replay.
OutOfOrderEvent
Event at index has a non-monotonic step_index.
ZeroTarget
Event at index carries a zero ContentAddress (forbidden in well-formed traces).
NonContiguousSteps
v0.2.2 T5.8: event step indices do not form a contiguous sequence
[0, 1, ..., len-1]. Replaces the misleadingly-named v0.2.1
LengthMismatch variant. The trace has the right number of
events, but their step indices skip values (e.g., [0, 2, 5]
with len = 3).
Fields
CapacityExceeded
A caller attempted to construct a Trace<TR_MAX> whose event count
exceeds TR_MAX (the application’s <HostBounds>::TRACE_MAX_EVENTS).
Distinct from NonContiguousSteps because the recovery is different
(truncate vs. close gaps). Returned by Trace::try_from_events,
never by verify_trace (the verifier reads from an existing Trace
whose capacity is already enforced by the type’s storage).
Trait Implementations§
Source§impl Clone for ReplayError
impl Clone for ReplayError
Source§fn clone(&self) -> ReplayError
fn clone(&self) -> ReplayError
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 ReplayError
impl Debug for ReplayError
Source§impl Display for ReplayError
impl Display for ReplayError
Source§impl Error for ReplayError
impl Error for ReplayError
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()
Source§impl Hash for ReplayError
impl Hash for ReplayError
Source§impl PartialEq for ReplayError
impl PartialEq for ReplayError
Source§fn eq(&self, other: &ReplayError) -> bool
fn eq(&self, other: &ReplayError) -> bool
self and other values to be equal, and is used by ==.