Enum json_request::Error [] [src]

pub enum Error {
    HttpClient(Error),
    JsonEncoder(EncoderError),
    JsonDecoder(DecoderError),
    IoError(Error),
}

Error wrapper

Variants

HttpClient

Error in HTTP library

JsonEncoder

Error encoding JSON object for request

JsonDecoder

Error decoding JSON object from response

IoError

Error reading body from hyper response

Trait Implementations

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<EncoderError> for Error

fn from(err: EncoderError) -> Error

impl From<DecoderError> for Error

fn from(err: DecoderError) -> Error

impl Error for Error

fn cause(&self) -> Option<&Error>

fn description(&self) -> &str

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result