Enum elastic::error::ParseResponseError
[−]
pub enum ParseResponseError { Json(Error), Io(Error), }
An error parsing a response stream.
Variants
Json(Error)
The response contains invalid json.
Io(Error)
The response caused an io error while buffering.
Trait Implementations
impl Display for ParseResponseError
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Error> for ParseResponseError
fn from(err: Error) -> ParseResponseError
Performs the conversion.
impl From<Error> for ParseResponseError
fn from(err: Error) -> ParseResponseError
Performs the conversion.
impl Error for ParseResponseError
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