Enum slack_hook2::SlackError
source · pub enum SlackError {
HexColor(String),
Http(String),
Url(ParseError),
}
Expand description
Public error type
Variants§
HexColor(String)
Errors from hex library or internal hex errors
Http(String)
Errors from reqwest send/gets or reqwests url TryInto
Url(ParseError)
Errors from url’s parser
Trait Implementations§
source§impl Debug for SlackError
impl Debug for SlackError
source§impl Display for SlackError
impl Display for SlackError
source§impl Error for SlackError
impl Error for SlackError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for SlackError
impl From<ParseError> for SlackError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.