Struct slack_hook::SlackError [] [src]

pub struct SlackError {
    pub kind: ErrorKind,
    pub desc: String,
}

main Slack library error

Fields

kind: ErrorKind

kind of error

desc: String

description of error

Trait Implementations

impl Debug for SlackError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Utf8Error> for SlackError
[src]

fn from(err: Utf8Error) -> SlackError

Performs the conversion.

impl From<EncoderError> for SlackError
[src]

fn from(err: EncoderError) -> SlackError

Performs the conversion.

impl From<Error> for SlackError
[src]

fn from(err: Error) -> SlackError

Performs the conversion.

impl From<FromHexError> for SlackError
[src]

fn from(err: FromHexError) -> SlackError

Performs the conversion.

impl<'a> From<(ErrorKind, &'a str)> for SlackError
[src]

fn from((kind, desc): (ErrorKind, &'a str)) -> SlackError

Performs the conversion.

impl Display for SlackError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for SlackError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more