[−][src]Enum skellige::prelude::PathError
Variants
DoesNotExist(PathBuf)
An error indicating that the path does not exist.
An error indicating that the path is empty.
ExistsAlready(PathBuf)
An error indicating that the path exists already.
ExtensionNotFound(PathBuf)
An error indicating that the path does not have an extension.
FailedToString(PathBuf)
An error indicating a failure to convert the path to a string.
FileNameNotFound(PathBuf)
An error indicating that the path does not contain a filename.
InvalidExpansion(PathBuf)
An error indicating that the path failed to expand properly.
IsNotDir(PathBuf)
An error indicating that the path is not a directory.
IsNotExec(PathBuf)
An error indicating that the path is not an executable file.
IsNotFile(PathBuf)
An error indicating that the path is not a file.
IsNotFileOrSymlinkToFile(PathBuf)
An error indicating that the path is not a file or symlink to a file.
MultipleHomeSymbols(PathBuf)
An error indicating that the path contains multiple user home symbols i.e. tilda.
ParentNotFound(PathBuf)
An error indicating that the path does not have a valid parent path.
Implementations
impl PathError
[src]
pub fn does_not_exist<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path does not exist
pub fn exists_already<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path exists already
pub fn extension_not_found<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path extension was not found
pub fn failed_to_string<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating a failure to convert the path to a string
pub fn filename_not_found<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path does not contain a filename
pub fn is_not_dir<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path is not a directory
pub fn is_not_exec<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path is not an executable
pub fn is_not_file<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path is not a file
pub fn is_not_file_or_symlink_to_file<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path is not a file or symlink to file
pub fn invalid_expansion<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path failed to expand properly
pub fn multiple_home_symbols<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path contains multiple user home symbols i.e. tilda
pub fn parent_not_found<T>(path: T) -> PathError where
T: AsRef<Path>,
[src]
T: AsRef<Path>,
Return an error indicating that the path does not have a valid parent path
Trait Implementations
impl AsRef<dyn Error + 'static> for PathError
[src]
impl Clone for PathError
[src]
impl Debug for PathError
[src]
impl Display for PathError
[src]
impl Eq for PathError
[src]
impl Error for PathError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<PathError> for FuError
[src]
impl Hash for PathError
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PathError
[src]
pub fn cmp(&self, other: &PathError) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PathError> for PathError
[src]
impl PartialOrd<PathError> for PathError
[src]
pub fn partial_cmp(&self, other: &PathError) -> Option<Ordering>
[src]
pub fn lt(&self, other: &PathError) -> bool
[src]
pub fn le(&self, other: &PathError) -> bool
[src]
pub fn gt(&self, other: &PathError) -> bool
[src]
pub fn ge(&self, other: &PathError) -> bool
[src]
impl StructuralEq for PathError
[src]
impl StructuralPartialEq for PathError
[src]
Auto Trait Implementations
impl RefUnwindSafe for PathError
[src]
impl Send for PathError
[src]
impl Sync for PathError
[src]
impl Unpin for PathError
[src]
impl UnwindSafe for PathError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,