pub enum Error {
InvalidQueryError {
error: String,
},
UrlConstructionError {
error: String,
},
ProtocolError {
error: String,
},
DeserializationError {
error: String,
},
DatabaseError {
error: String,
},
AuthenticationError,
AuthorizationError,
ConnectionError {
error: Error,
},
}
Variants
InvalidQueryError
Fields
error: String
Error happens when a query is invalid
UrlConstructionError
Fields
error: String
Error happens when a query is invalid
ProtocolError
Fields
error: String
Error happens when a query is invalid
DeserializationError
Fields
error: String
Error happens when Serde cannot deserialize the response
DatabaseError
Fields
error: String
Error which has happened inside InfluxDB
AuthenticationError
Error happens when no or incorrect credentials are used. HTTP 401 Unauthorized
AuthorizationError
Error happens when the supplied user is not authorized. HTTP 403 Forbidden
ConnectionError
Fields
error: Error
Error happens when reqwest fails
Trait Implementations
sourceimpl Fail for Error
impl Fail for Error
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more