#[non_exhaustive]pub enum CheckpointBarrierError {
Results {
source: BarrierResultHeadsError,
},
EmptyReadySet,
SuccessorParentMismatch,
ResultBaseMismatch,
UnexpectedResultNode {
node_id: NodeId,
},
MissingResultNode {
node_id: NodeId,
},
Integrity {
source: CheckpointBarrierIntegrityError,
},
DigestMismatch,
}Expand description
Invalid or corrupted checkpoint barrier intent.
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.
Results
The compact result collection was intrinsically invalid.
Fields
§
source: BarrierResultHeadsErrorExact collection error.
EmptyReadySet
The copied base ready set was empty.
SuccessorParentMismatch
The successor did not name the exact base checkpoint as its parent.
ResultBaseMismatch
Result heads belonged to another immutable base checkpoint.
UnexpectedResultNode
A result named a node outside the base ready set.
MissingResultNode
At least one ready node had no result.
Integrity
Canonical barrier integrity material could not be produced.
Fields
§
source: CheckpointBarrierIntegrityErrorExact canonicalization failure.
DigestMismatch
Serialized caller-controlled fields did not match the barrier digest.
Trait Implementations§
Source§impl Clone for CheckpointBarrierError
impl Clone for CheckpointBarrierError
Source§impl Debug for CheckpointBarrierError
impl Debug for CheckpointBarrierError
Source§impl Display for CheckpointBarrierError
impl Display for CheckpointBarrierError
impl Eq for CheckpointBarrierError
Source§impl Error for CheckpointBarrierError
impl Error for CheckpointBarrierError
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()
Source§impl From<CheckpointBarrierIntegrityError> for CheckpointBarrierError
impl From<CheckpointBarrierIntegrityError> for CheckpointBarrierError
Source§fn from(source: CheckpointBarrierIntegrityError) -> Self
fn from(source: CheckpointBarrierIntegrityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CheckpointBarrierError
impl PartialEq for CheckpointBarrierError
impl StructuralPartialEq for CheckpointBarrierError
Auto Trait Implementations§
impl Forget for CheckpointBarrierError
impl Freeze for CheckpointBarrierError
impl Move for CheckpointBarrierError
impl RefUnwindSafe for CheckpointBarrierError
impl Send for CheckpointBarrierError
impl Sync for CheckpointBarrierError
impl Unpin for CheckpointBarrierError
impl UnsafeUnpin for CheckpointBarrierError
impl UnwindSafe for CheckpointBarrierError
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