Enum error_chain::example_generated::inner::ErrorKind [−][src]
pub enum ErrorKind {
Msg(String),
// some variants omitted
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
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<'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 ErrorKindimpl From<ErrorKind> for ErrorKind[src]
impl From<ErrorKind> for ErrorKindLink to another ErrorChain.