Enum slack_api::requests::Error
[−]
[src]
pub enum Error {
Http(Error),
Serialize(Box<Error + 'static + Send + Sync>),
TooManyRedirects,
RedirectLoop,
// some variants omitted
}The Errors that may occur when processing a Request.
Variants
Http(Error)An HTTP error from the hyper crate.
Serialize(Box<Error + 'static + Send + Sync>)An error trying to serialize a value.
This may be serializing a value that is illegal in JSON or form-url-encoded bodies.
TooManyRedirectsA request tried to redirect too many times.
RedirectLoopAn infinite redirect loop was detected.
Trait Implementations
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
impl From<Error> for Error[src]
impl From<ParseError> for Error[src]
fn from(err: ParseError) -> Error
Performs the conversion.
impl From<Error> for Error[src]
impl From<Error> for Error[src]
impl Debug for Error[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.