[][src]Enum ccache_stats_reader::ErrorKind

#[non_exhaustive]
pub enum ErrorKind {
    IoError(Error),
    Stringy(String),
    SysTime(SystemTimeError),
    ParseU64Error {
        input_value: String,
        input_line: usize,
        input_file: PathBuf,
    },
    CacheLeafNonFile {
        input_path: PathBuf,
    },
}

An enum for wrapping various errors emitted by this crate.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(Error)

Proxy Enum for std::io::Error

Stringy(String)

Proxy Enum for internal errors that are simple String's

Proxy enum for errors that are std::time::SystemTimeError's

ParseU64Error

Error parsing a u64 from a file

Fields of ParseU64Error

input_value: String

The string that was attempted to be parsed

input_line: usize

The line of the file that was trying to be decoded

input_file: PathBuf

The file that was being read

CacheLeafNonFile

A path to a non-file was passed to CacheLeaf for reading, but it turned out to be the kind of thing that can't be expected to be read (like a directory)

Fields of CacheLeafNonFile

input_path: PathBuf

The Path

Trait Implementations

impl From<Error> for ErrorKind[src]

impl From<SystemTimeError> for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Error for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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