pub enum RequestError {
ReqwestError {
body: String,
status: StatusCode,
},
NoAvailableHosts,
SwitchoverWrongError(String),
InvalidQuery(QueryBuilderError),
FailedParseRequestBody(Error),
FailedParseResponseBody(Error),
FailedReadingResponse(Error),
NoRowsReturned,
DatabaseError(String),
Unauthorized,
}
Variants§
ReqwestError
An error occurred while sending a request to the rqlite cluster.
NoAvailableHosts
No available hosts to send the request to.
SwitchoverWrongError(String)
An unhandled error occured while switching to a different host.
InvalidQuery(QueryBuilderError)
An invalid query was provided.
FailedParseRequestBody(Error)
An error occurred while parsing the request body.
FailedParseResponseBody(Error)
An error occurred while parsing the response body.
FailedReadingResponse(Error)
An error occurred while reading the response body.
NoRowsReturned
No Rows were returned from the query.
DatabaseError(String)
The database returned an error.
Unauthorized access to the rqlite cluster.
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 source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for RequestError
impl From<Error> for RequestError
Source§impl From<Infallible> for RequestError
impl From<Infallible> for RequestError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<QueryBuilderError> for RequestError
impl From<QueryBuilderError> for RequestError
Source§fn from(source: QueryBuilderError) -> Self
fn from(source: QueryBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RequestError
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> 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.