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)>
Returns 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.
Auto Trait Implementations§
impl Freeze for SlackError
impl RefUnwindSafe for SlackError
impl Send for SlackError
impl Sync for SlackError
impl Unpin for SlackError
impl UnwindSafe for SlackError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more