pub enum PersistentApplyError {
MissingNode {
node_id: PaneId,
},
NotSplit {
node_id: PaneId,
},
NotLeaf {
node_id: PaneId,
},
CannotCloseRoot {
node_id: PaneId,
},
AncestorConflict {
ancestor: PaneId,
descendant: PaneId,
},
IdOverflow {
current: PaneId,
},
InvalidTree(PaneModelError),
Rebuild(String),
}Expand description
Failure from VersionedPaneTree::apply_operation.
The variants mirror the canonical baseline’s reject conditions closely enough that the differential oracle only needs accept/reject agreement plus state-hash equality on the accept path.
Variants§
MissingNode
Referenced node id is absent from the tree.
NotSplit
Operation targeted a non-split node where a split was required.
NotLeaf
Operation targeted a non-leaf node where a leaf was required.
CannotCloseRoot
Attempted to close the root node.
AncestorConflict
One node is an ancestor of the other (illegal for swap).
IdOverflow
Ran out of the pane id space.
InvalidTree(PaneModelError)
The flattened tree failed canonical validation (should be unreachable).
Rebuild(String)
The rebuild-fallback baseline rejected the operation.
Trait Implementations§
Source§impl Clone for PersistentApplyError
impl Clone for PersistentApplyError
Source§fn clone(&self) -> PersistentApplyError
fn clone(&self) -> PersistentApplyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersistentApplyError
impl Debug for PersistentApplyError
impl Eq for PersistentApplyError
Source§impl PartialEq for PersistentApplyError
impl PartialEq for PersistentApplyError
Source§fn eq(&self, other: &PersistentApplyError) -> bool
fn eq(&self, other: &PersistentApplyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersistentApplyError
Auto Trait Implementations§
impl Freeze for PersistentApplyError
impl RefUnwindSafe for PersistentApplyError
impl Send for PersistentApplyError
impl Sync for PersistentApplyError
impl Unpin for PersistentApplyError
impl UnsafeUnpin for PersistentApplyError
impl UnwindSafe for PersistentApplyError
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