Enum influxdb2::RequestError
source · pub enum RequestError {
ReqwestProcessing {
source: Error,
},
Http {
status: StatusCode,
text: String,
},
Serializing {
source: Error,
},
Deserializing {
text: String,
},
}
Expand description
Errors that occur while making requests to the Influx server.
Variants§
ReqwestProcessing
While making a request to the Influx server, the underlying reqwest
library returned an error that was not an HTTP 400 or 500.
Http
Fields
§
status: StatusCode
The StatusCode
returned from the request
The underlying reqwest
library returned an HTTP error with code 400
(meaning a client error) or 500 (meaning a server error).
Serializing
While serializing data as JSON to send in a request, the underlying
serde_json
library returned an error.
Deserializing
While deserializing response from the Influx server, the underlying parsing library returned an error.
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for RequestError
impl ErrorCompat for RequestError
Auto Trait Implementations§
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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