Enum error_chain::example_generated::ErrorKind [−][src]
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Inner(ErrorKind)
Link to another ErrorChain
.
Io(Error)
Link to a std::io::Error
type.
Custom
A custom error kind.
Methods
impl ErrorKind
[src]
impl ErrorKind
pub fn description(&self) -> &str
[src]
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
[src]
impl From<ErrorKind> for Error
impl Debug for ErrorKind
[src]
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ErrorKind
[src]
impl Display for ErrorKind
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ErrorKind> for ErrorKind
[src]
impl From<ErrorKind> for ErrorKind
Link to another ErrorChain
.
impl<'a> From<&'a str> for ErrorKind
[src]
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
[src]
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
[src]
impl From<Error> for ErrorKind