pub enum DirectoryFromPathError {
Io(Error),
StripPrefix {
path: PathBuf,
root: PathBuf,
},
NonUtf8Path(OsString),
PathSegment(PathSegmentError),
Ignore(Error),
BrokenSymlink(PathBuf),
}Expand description
Error returned from from_path_with_ignore.
Variants§
Io(Error)
IO error
StripPrefix
Failed to strip prefix
Fields
NonUtf8Path(OsString)
Non-UTF8 path encountered
PathSegment(PathSegmentError)
Path segment parsing error
Ignore(Error)
Error from ignore, such as failure to parse a .gitignore file
BrokenSymlink(PathBuf)
Broken symlink error
Trait Implementations§
Source§impl Debug for DirectoryFromPathError
impl Debug for DirectoryFromPathError
Source§impl Display for DirectoryFromPathError
impl Display for DirectoryFromPathError
Source§impl Error for DirectoryFromPathError
impl Error for DirectoryFromPathError
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 From<Error> for DirectoryFromPathError
impl From<Error> for DirectoryFromPathError
Source§impl From<Error> for DirectoryFromPathError
impl From<Error> for DirectoryFromPathError
Source§impl From<PathSegmentError> for DirectoryFromPathError
impl From<PathSegmentError> for DirectoryFromPathError
Source§fn from(source: PathSegmentError) -> Self
fn from(source: PathSegmentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DirectoryFromPathError
impl !RefUnwindSafe for DirectoryFromPathError
impl Send for DirectoryFromPathError
impl Sync for DirectoryFromPathError
impl Unpin for DirectoryFromPathError
impl !UnwindSafe for DirectoryFromPathError
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