[−][src]Enum bodhi::error::QueryError
This enum encapsulates the different ways in which bodhi queries can fail.
Variants
This error represents a network-related issue that occurred within
reqwest
.
This error represents an issue with deserializing JSON request data. If this ever happens, it is almost certainly a bug in this crate.
Fields of DeserializationError
error: Error
The inner error contains the deserialization error message from
serde_json
.
This error represents an issue with serializing request data for POST requests. Since all data that can be supplied to POST request builders should be valid, this should never happen.
Fields of SerializationError
error: Error
The inner error contains the serialization error message from
serde_json
.
This error represents a successfully decoded bodhi server error message.
Fields of BodhiError
error: BodhiError
The inner BodhiError
contains the deserialized JSON error
response from the server.
This error represents an unexpected response or query error from the bodhi instance.
Fields of ServiceError
error: ServiceError
The inner ServiceError contains more information about the type of failure that occurred, for example, malformed responses or network-related issues.
This error represents an unexpected issue when constructing a query URL, probably due
to data that was not successfully deserialized into x-www-urlencoded
format.
Fields of UrlEncodedError
error: String
This inner error contains the deserialization error.
This error represents some input data validation error.
Fields of InvalidDataError
error: String
This inner error contains a the reason why the data was considered invalid.
Trait Implementations
impl Debug for QueryError
[src]
impl Display for QueryError
[src]
impl Fail for QueryError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl From<Error> for QueryError
[src]
impl From<Error> for QueryError
[src]
impl From<Error> for QueryError
[src]
impl From<ServiceError> for QueryError
[src]
fn from(error: ServiceError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl !UnwindSafe for QueryError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,