pub enum WorkspacePathErrorCode {
Show 15 variants
WorkspaceNotFound,
WorkspaceNotDirectory,
AbsolutePath,
ParentTraversal,
InvalidPath,
PathTooLong,
TooManyComponents,
TargetNotFound,
WorkspaceRootMutation,
OutsideWorkspace,
ParentNotDirectory,
UnresolvableTarget,
PathChanged,
CapabilityMismatch,
FilesystemFailure,
}Expand description
Stable machine-readable classification for workspace capability failures.
Variants§
WorkspaceNotFound
The requested workspace root does not exist.
WorkspaceNotDirectory
The requested workspace root is not a directory.
AbsolutePath
An absolute model-supplied path was rejected.
ParentTraversal
A model-supplied path contained a parent traversal component.
InvalidPath
A model-supplied path was empty, ambiguous, or platform-specific.
PathTooLong
A model-supplied path exceeded its UTF-8 byte bound.
TooManyComponents
A model-supplied path exceeded its component-count bound.
TargetNotFound
An existing target was required but was not found.
WorkspaceRootMutation
A mutation attempted to target the workspace root itself.
OutsideWorkspace
A resolved target or ancestor escaped the workspace.
ParentNotDirectory
The nearest existing mutation ancestor was not a directory.
UnresolvableTarget
A symlink or filesystem object could not be resolved safely.
PathChanged
A mutation target changed after it was resolved.
CapabilityMismatch
A resolved mutation target belongs to another workspace capability.
FilesystemFailure
A filesystem operation failed without a safe path-specific diagnostic.
Trait Implementations§
Source§impl Clone for WorkspacePathErrorCode
impl Clone for WorkspacePathErrorCode
impl Copy for WorkspacePathErrorCode
Source§impl Debug for WorkspacePathErrorCode
impl Debug for WorkspacePathErrorCode
impl Eq for WorkspacePathErrorCode
Source§impl PartialEq for WorkspacePathErrorCode
impl PartialEq for WorkspacePathErrorCode
impl StructuralPartialEq for WorkspacePathErrorCode
Auto Trait Implementations§
impl Freeze for WorkspacePathErrorCode
impl RefUnwindSafe for WorkspacePathErrorCode
impl Send for WorkspacePathErrorCode
impl Sync for WorkspacePathErrorCode
impl Unpin for WorkspacePathErrorCode
impl UnsafeUnpin for WorkspacePathErrorCode
impl UnwindSafe for WorkspacePathErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.