logo
pub enum Error {
Show 18 variants Io(Error), PathStripPrefix(StripPrefixError), ConfigMerge(ConfigError), Template(Error), Notify(Error), GlobPattern(PatternError), TomlExport(Error), PathExpend(LookupError<VarError>), PostHeadPaser(ErrorPathBuf), RootDirExisted(PathBuf), PostPathInvaild(PathBuf), PostPathExisted(PathBuf), ThemeFileEncoding(String), ThemeInUse(String), ThemeNotFound(String), PostOnlyOnePart(PathBuf), PostNoHead(PathBuf), PostNoBody(PathBuf),
}
Expand description

The Error type

Variants

Io(Error)

Tuple Fields

0: Error

IO error

PathStripPrefix(StripPrefixError)

Tuple Fields

path strip prefix error

ConfigMerge(ConfigError)

Tuple Fields

config merge error

Template(Error)

Tuple Fields

0: Error

template error

Notify(Error)

Tuple Fields

0: Error

notify error

GlobPattern(PatternError)

Tuple Fields

glob pattern error

TomlExport(Error)

Tuple Fields

0: Error

toml export error

PathExpend(LookupError<VarError>)

Tuple Fields

path expand error

PostHeadPaser(ErrorPathBuf)

Tuple Fields

0: Error

post head parse error

RootDirExisted(PathBuf)

Tuple Fields

blog root directory already exists error

PostPathInvaild(PathBuf)

Tuple Fields

post path format error

PostPathExisted(PathBuf)

Tuple Fields

post path already existed

ThemeFileEncoding(String)

Tuple Fields

0: String

theme template file encoding error

ThemeInUse(String)

Tuple Fields

0: String

blog theme in use, can not be deleted error

ThemeNotFound(String)

Tuple Fields

0: String

blog theme not found error

PostOnlyOnePart(PathBuf)

Tuple Fields

post must has two parts error

PostNoHead(PathBuf)

Tuple Fields

post head part is empty error

PostNoBody(PathBuf)

Tuple Fields

post body part is empty error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts self into a collection.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.