[][src]Enum skellige::prelude::PathError

pub enum PathError {
    DoesNotExist(PathBuf),
    Empty,
    ExistsAlready(PathBuf),
    ExtensionNotFound(PathBuf),
    FailedToString(PathBuf),
    FileNameNotFound(PathBuf),
    InvalidExpansion(PathBuf),
    IsNotDir(PathBuf),
    IsNotExec(PathBuf),
    IsNotFile(PathBuf),
    IsNotFileOrSymlinkToFile(PathBuf),
    MultipleHomeSymbols(PathBuf),
    ParentNotFound(PathBuf),
}

Variants

DoesNotExist(PathBuf)

An error indicating that the path does not exist.

Empty

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]

Return an error indicating that the path does not exist

pub fn exists_already<T>(path: T) -> PathError where
    T: AsRef<Path>, 
[src]

Return an error indicating that the path exists already

pub fn extension_not_found<T>(path: T) -> PathError where
    T: AsRef<Path>, 
[src]

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]

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]

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]

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]

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]

Return an error indicating that the path is not a file

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]

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]

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]

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]

impl From<PathError> for FuError[src]

impl Hash for PathError[src]

impl Ord for PathError[src]

impl PartialEq<PathError> for PathError[src]

impl PartialOrd<PathError> for PathError[src]

impl StructuralEq for PathError[src]

impl StructuralPartialEq for PathError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.