Enum mdblog::Error [−][src]
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)
IO error
Tuple Fields of Io
0: Error
PathStripPrefix(StripPrefixError)
path strip prefix error
Tuple Fields of PathStripPrefix
ConfigMerge(ConfigError)
config merge error
Tuple Fields of ConfigMerge
0: ConfigError
Template(Error)
template error
Tuple Fields of Template
0: Error
Notify(Error)
notify error
Tuple Fields of Notify
0: Error
GlobPattern(PatternError)
glob pattern error
Tuple Fields of GlobPattern
0: PatternError
TomlExport(Error)
toml export error
Tuple Fields of TomlExport
0: Error
PathExpend(LookupError<VarError>)
path expand error
Tuple Fields of PathExpend
0: LookupError<VarError>
post head parse error
RootDirExisted(PathBuf)
blog root directory already exists error
Tuple Fields of RootDirExisted
0: PathBuf
PostPathInvaild(PathBuf)
post path format error
Tuple Fields of PostPathInvaild
0: PathBuf
PostPathExisted(PathBuf)
post path already existed
Tuple Fields of PostPathExisted
0: PathBuf
ThemeFileEncoding(String)
theme template file encoding error
Tuple Fields of ThemeFileEncoding
0: String
ThemeInUse(String)
blog theme in use, can not be deleted error
Tuple Fields of ThemeInUse
0: String
ThemeNotFound(String)
blog theme not found error
Tuple Fields of ThemeNotFound
0: String
PostOnlyOnePart(PathBuf)
post must has two parts error
Tuple Fields of PostOnlyOnePart
0: PathBuf
PostNoHead(PathBuf)
post head part is empty error
Tuple Fields of PostNoHead
0: PathBuf
PostNoBody(PathBuf)
post body part is empty error
Tuple Fields of PostNoBody
0: PathBuf
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.