pub enum SoftPathError {
Io(Error),
HomeDirNotFound,
InvalidPath(String),
PathTooDeep(usize),
PathTraversal(String),
SymlinkCycle(PathBuf),
PathDepthExceeded(usize),
SymlinkDepthExceeded(usize),
SymlinkCycleDetected(String),
PermissionDenied(String),
}Expand description
Represents errors that can occur during path operations
Variants§
Io(Error)
An IO error occurred during the operation
HomeDirNotFound
Home directory could not be determined
InvalidPath(String)
Path is invalid or malformed
PathTooDeep(usize)
Path exceeds maximum depth
PathTraversal(String)
Path contains directory traversal attempts
SymlinkCycle(PathBuf)
Path contains a symlink cycle
PathDepthExceeded(usize)
Path depth exceeded the allowed limit
SymlinkDepthExceeded(usize)
Path contains too many symlink levels
SymlinkCycleDetected(String)
A symlink cycle was detected
PermissionDenied(String)
Permission denied for the operation
Trait Implementations§
Source§impl Debug for SoftPathError
impl Debug for SoftPathError
Source§impl Display for SoftPathError
impl Display for SoftPathError
Source§impl Error for SoftPathError
impl Error for SoftPathError
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()
Auto Trait Implementations§
impl Freeze for SoftPathError
impl !RefUnwindSafe for SoftPathError
impl Send for SoftPathError
impl Sync for SoftPathError
impl Unpin for SoftPathError
impl !UnwindSafe for SoftPathError
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