Enum slack::error::Error [] [src]

pub enum Error {
    Http(Error),
    WebSocket(WebSocketError),
    Utf8(FromUtf8Error),
    Url(Error),
    JsonDecode(DecoderError),
    JsonParse(ParserError),
    JsonEncode(EncoderError),
    Api(String),
    Internal(String),
}

slack::Error represents errors that can happen while using the RtmClient

Variants

Http(Error)

Http client error

WebSocket(WebSocketError)

WebSocket connection error

Utf8(FromUtf8Error)

Error decoding websocket text frame Utf8

Url(Error)

Error parsing url

JsonDecode(DecoderError)

Error decoding Json

JsonParse(ParserError)

Error parsing Json

JsonEncode(EncoderError)

Error encoding Json

Api(String)

Slack Api Error

Internal(String)

Errors that do not fit under the other types, Internal is for EG channel errors.

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<WebSocketError> for Error
[src]

fn from(err: WebSocketError) -> Error

Performs the conversion.

impl From<DecoderError> for Error
[src]

fn from(err: DecoderError) -> Error

Performs the conversion.

impl From<ParserError> for Error
[src]

fn from(err: ParserError) -> Error

Performs the conversion.

impl From<EncoderError> for Error
[src]

fn from(err: EncoderError) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(err: FromUtf8Error) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl Error for Error
[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