pub enum WorkspacePathError {
PathTraversalAttempt(String),
PathOutsideWorkspace(String),
InvalidPathCharacters,
}Expand description
Path validation errors for workspace-bound operations.
Variants§
PathTraversalAttempt(String)
Parent traversal or invalid component escaping workspace constraints.
PathOutsideWorkspace(String)
Path resolves outside the workspace root.
InvalidPathCharacters
Path contains null bytes or disallowed control characters.
Trait Implementations§
Source§impl Clone for WorkspacePathError
impl Clone for WorkspacePathError
Source§fn clone(&self) -> WorkspacePathError
fn clone(&self) -> WorkspacePathError
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 WorkspacePathError
impl Debug for WorkspacePathError
Source§impl Display for WorkspacePathError
impl Display for WorkspacePathError
Source§impl Error for WorkspacePathError
impl Error for WorkspacePathError
1.30.0 · 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 PartialEq for WorkspacePathError
impl PartialEq for WorkspacePathError
impl Eq for WorkspacePathError
impl StructuralPartialEq for WorkspacePathError
Auto Trait Implementations§
impl Freeze for WorkspacePathError
impl RefUnwindSafe for WorkspacePathError
impl Send for WorkspacePathError
impl Sync for WorkspacePathError
impl Unpin for WorkspacePathError
impl UnsafeUnpin for WorkspacePathError
impl UnwindSafe for WorkspacePathError
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