Enum postmark::QueryError
source · [−]pub enum QueryError<E> where
E: Error + Send + Sync + 'static, {
Client {
source: E,
},
Json {
source: Error,
},
Body {
source: Error,
},
}
Expand description
An error thrown by the Query
trait
Variants
Client
The client encountered an error.
Json
Fields
source: Error
The source of the error.
JSON deserialization from GitLab failed.
Body
Fields
source: Error
The source of the error.
Body data could not be created.
Implementations
Trait Implementations
sourceimpl<E> Error for QueryError<E> where
E: Error + Send + Sync + 'static,
E: Error + 'static,
Self: Debug + Display,
impl<E> Error for QueryError<E> where
E: Error + Send + Sync + 'static,
E: Error + 'static,
Self: Debug + Display,
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<E> !RefUnwindSafe for QueryError<E>
impl<E> Send for QueryError<E>
impl<E> Sync for QueryError<E>
impl<E> Unpin for QueryError<E> where
E: Unpin,
impl<E> !UnwindSafe for QueryError<E>
Blanket Implementations
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