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
Fields
§
source: E
The client error.
The client encountered an error.
Json
JSON deserialization from GitLab failed.
Body
Body data could not be created.
Implementations§
Trait Implementations§
source§impl<E> Error for QueryError<E>where
E: Error + Send + Sync + 'static + Error,
Self: Debug + Display,
impl<E> Error for QueryError<E>where E: Error + Send + Sync + 'static + Error, Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
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§
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