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.
CustomA custom error kind.
Methods
impl ErrorKind[src]
impl ErrorKindpub fn description(&self) -> &str[src]
pub fn description(&self) -> &strA string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error[src]
impl From<ErrorKind> for Errorimpl Debug for ErrorKind[src]
impl Debug for ErrorKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for ErrorKind[src]
impl Display for ErrorKindfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ErrorKind> for ErrorKind[src]
impl From<ErrorKind> for ErrorKindLink to another ErrorChain.
impl<'a> From<&'a str> for ErrorKind[src]
impl<'a> From<&'a str> for ErrorKindimpl From<String> for ErrorKind[src]
impl From<String> for ErrorKindimpl From<Error> for ErrorKind[src]
impl From<Error> for ErrorKind