slack-morphism 1.17.0

Slack Morphism is a modern client library for Slack Web/Events API/Socket Mode and Block Kit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::errors::*;

impl From<hyper::Error> for SlackClientError {
    fn from(hyper_err: hyper::Error) -> Self {
        SlackClientError::HttpProtocolError(
            SlackClientHttpProtocolError::new().with_cause(Box::new(hyper_err)),
        )
    }
}

impl From<hyper::http::Error> for SlackClientError {
    fn from(hyper_err: hyper::http::Error) -> Self {
        SlackClientError::HttpProtocolError(
            SlackClientHttpProtocolError::new().with_cause(Box::new(hyper_err)),
        )
    }
}