pub enum Error {
Show 22 variants
Io(IoError),
IntParse(ParseIntError),
AddrParse(AddrParseError),
ThemeTemplateEncodeing(Utf8Error),
Notify(NotifyError),
Pattern(PatternError),
Config(ConfigError),
Toml(TomlError),
Yaml(YamlError),
PathExpend(LookupError<VarError>),
PathStripPrefix(StripPrefixError),
Template(String),
Argument(String),
RootDirExisted(PathBuf),
ThemeNotFound(String),
ThemeInUse(String),
PostPathInvaild(PathBuf),
PostPathExisted(PathBuf),
PostOnlyOnePart(PathBuf),
PostNoHead(PathBuf),
PostNoBody(PathBuf),
PostHead(PathBuf),
}
Expand description
The error type used by this crate.
Variants
Io(IoError)
IntParse(ParseIntError)
AddrParse(AddrParseError)
ThemeTemplateEncodeing(Utf8Error)
Notify(NotifyError)
Pattern(PatternError)
Config(ConfigError)
Toml(TomlError)
Yaml(YamlError)
PathExpend(LookupError<VarError>)
PathStripPrefix(StripPrefixError)
Template(String)
Argument(String)
RootDirExisted(PathBuf)
ThemeNotFound(String)
ThemeInUse(String)
PostPathInvaild(PathBuf)
PostPathExisted(PathBuf)
PostOnlyOnePart(PathBuf)
PostNoHead(PathBuf)
PostNoBody(PathBuf)
PostHead(PathBuf)
Trait Implementations
sourceimpl Fail for Error
impl Fail for Error
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<AddrParseError> for Error
impl From<AddrParseError> for Error
sourcefn from(err: AddrParseError) -> Error
fn from(err: AddrParseError) -> Error
Converts to this type from the input type.
sourceimpl From<ConfigError> for Error
impl From<ConfigError> for Error
sourcefn from(err: ConfigError) -> Error
fn from(err: ConfigError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: NotifyError) -> Error
fn from(err: NotifyError) -> Error
Converts to this type from the input type.
sourceimpl From<LookupError<VarError>> for Error
impl From<LookupError<VarError>> for Error
sourcefn from(err: LookupError<VarError>) -> Error
fn from(err: LookupError<VarError>) -> Error
Converts to this type from the input type.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
sourceimpl From<PatternError> for Error
impl From<PatternError> for Error
sourcefn from(err: PatternError) -> Error
fn from(err: PatternError) -> Error
Converts to this type from the input type.
sourceimpl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
sourcefn from(err: StripPrefixError) -> Error
fn from(err: StripPrefixError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.