Enum slack_hook::ErrorKind [] [src]

pub enum ErrorKind {
    ErrSlackResp,
    ErrUtf8(Utf8Error),
    ErrFromHex(FromHexError),
    ErrHexColor,
    ErrEncoder(EncoderError),
    ErrCurl(Error),
}

Different kinds of errors handled

Variants

ErrSlackResp

slack response failed

ErrUtf8(Utf8Error)

slack response should be in utf8

ErrFromHex(FromHexError)

couldn't convert value to Hex

ErrHexColor

failed other hex color validations for input

ErrEncoder(EncoderError)

failed to encode payload

ErrCurl(Error)

curl error

Trait Implementations

impl Debug for ErrorKind
[src]

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

Formats the value using the given formatter.

impl Clone for ErrorKind
[src]

fn clone(&self) -> ErrorKind

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more