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
Fields
source: Error
The underlying error object from reqwest
.
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
text: String
Any text data 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
Fields
source: Error
The underlying error object from serde_json
.
While serializing data as JSON to send in a request, the underlying
serde_json
library returned an error.
Deserializing
Fields
text: String
Error description.
While deserializing response from the Influx server, the underlying parsing library returned an error.
Trait Implementations
sourceimpl Debug for RequestError
impl Debug for RequestError
sourceimpl Display for RequestError
impl Display for RequestError
sourceimpl Error for RequestError where
Self: Debug + Display,
impl Error for RequestError where
Self: Debug + Display,
sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl 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
sourceimpl<T> AsErrorSource for T where
T: 'static + Error,
impl<T> AsErrorSource for T where
T: 'static + Error,
sourcefn 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. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more