Enum hugo_to_json::hugo_to_json_error::HugotoJsonError[][src]

pub enum HugotoJsonError {
    Io(Error),
    Meta {
        total: usize,
    },
    Serialization(Error),
    Unknown,
}

Represents the different possible error states that can arise from trying to produce an index.

Variants

Io(Error)

An IO error i.e. an error reading, writing or seeking most likely from the OS.

Meta

Represents a case of one or more errors traversing and reading files in the contents directory.

Fields of Meta

total: usize

The number of errors that occurred.

Serialization(Error)

An error trying to serialize to JSON.

Unknown

A catchall for all unknown errors.

Trait Implementations

impl Debug for HugotoJsonError[src]

impl Display for HugotoJsonError[src]

impl Error for HugotoJsonError[src]

impl From<Error> for HugotoJsonError[src]

impl From<Error> for HugotoJsonError[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> 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.