pub enum WorkspaceValidationError {
UnsupportedVersion {
found: u16,
expected: u16,
},
PaneTreeVersionMismatch {
found: u16,
expected: u16,
},
PaneTreeInvalid {
issue_count: usize,
first_issue: String,
},
ActivePaneNotFound {
pane_id: PaneId,
},
ActivePaneNotLeaf {
pane_id: PaneId,
},
EmptyWorkspaceName,
TimelineCursorOutOfRange {
cursor: usize,
len: usize,
},
TimelineReplayFailed {
reason: String,
},
TimelineReplayMismatch {
pane_tree_hash: u64,
replay_hash: u64,
},
PaneModel(PaneModelError),
}Expand description
Errors from workspace validation.
Variants§
UnsupportedVersion
Schema version is not supported.
PaneTreeVersionMismatch
Pane tree schema version mismatch.
PaneTreeInvalid
Pane tree has structural invariant violations.
ActivePaneNotFound
Active pane ID does not exist in the tree.
ActivePaneNotLeaf
Active pane is a split node, not a leaf.
EmptyWorkspaceName
Workspace name is empty.
TimelineCursorOutOfRange
Timeline cursor is outside the recorded history bounds.
TimelineReplayFailed
Timeline replay failed (missing/invalid baseline or invalid operation).
TimelineReplayMismatch
Timeline replay does not match the persisted pane tree state.
PaneModel(PaneModelError)
Pane model error from tree operations.
Trait Implementations§
Source§impl Clone for WorkspaceValidationError
impl Clone for WorkspaceValidationError
Source§fn clone(&self) -> WorkspaceValidationError
fn clone(&self) -> WorkspaceValidationError
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkspaceValidationError
impl Debug for WorkspaceValidationError
Source§impl Display for WorkspaceValidationError
impl Display for WorkspaceValidationError
Source§impl From<PaneModelError> for WorkspaceValidationError
impl From<PaneModelError> for WorkspaceValidationError
Source§fn from(err: PaneModelError) -> Self
fn from(err: PaneModelError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkspaceValidationError
impl PartialEq for WorkspaceValidationError
impl Eq for WorkspaceValidationError
impl StructuralPartialEq for WorkspaceValidationError
Auto Trait Implementations§
impl Freeze for WorkspaceValidationError
impl RefUnwindSafe for WorkspaceValidationError
impl Send for WorkspaceValidationError
impl Sync for WorkspaceValidationError
impl Unpin for WorkspaceValidationError
impl UnsafeUnpin for WorkspaceValidationError
impl UnwindSafe for WorkspaceValidationError
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