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]
impl From<Error> for Error
[src]
impl From<WebSocketError> for Error
[src]
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]
impl From<FromUtf8Error> for Error
[src]
fn from(err: FromUtf8Error) -> Error
Performs the conversion.