pub enum Error {
Show 18 variants
Io(Error),
PathStripPrefix(StripPrefixError),
ConfigMerge(ConfigError),
Template(Error),
Notify(Error),
GlobPattern(PatternError),
TomlExport(Error),
PathExpend(LookupError<VarError>),
PostHeadPaser(Error, PathBuf),
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
0: ConfigError
config merge error
Template(Error)
Tuple Fields
0: Error
template error
Notify(Error)
Tuple Fields
0: Error
notify error
GlobPattern(PatternError)
Tuple Fields
0: PatternError
glob pattern error
TomlExport(Error)
Tuple Fields
0: Error
toml export error
PathExpend(LookupError<VarError>)
Tuple Fields
0: LookupError<VarError>
path expand error
PostHeadPaser(Error, PathBuf)
post head parse error
RootDirExisted(PathBuf)
Tuple Fields
0: PathBuf
blog root directory already exists error
PostPathInvaild(PathBuf)
Tuple Fields
0: PathBuf
post path format error
PostPathExisted(PathBuf)
Tuple Fields
0: PathBuf
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
0: PathBuf
post must has two parts error
PostNoHead(PathBuf)
Tuple Fields
0: PathBuf
post head part is empty error
PostNoBody(PathBuf)
Tuple Fields
0: PathBuf
post body part is empty error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.