pub enum JmapEmailSubmissionQueryError {
MissingQueryResponse,
MissingGetResponse,
Send(JmapSendError),
SerializeArgs(Error),
ParseQueryResponse(Error),
ParseGetResponse(Error),
QueryMethod(JmapMethodError),
GetMethod(JmapMethodError),
}Expand description
Failure causes during a batched JMAP EmailSubmission/query + /get flow.
Variants§
MissingQueryResponse
The response carried no query response.
MissingGetResponse
The response carried no get response.
Send(JmapSendError)
The inner send coroutine failed.
SerializeArgs(Error)
The method arguments could not be serialized.
ParseQueryResponse(Error)
The query response could not be parsed.
ParseGetResponse(Error)
The get response could not be parsed.
QueryMethod(JmapMethodError)
The server returned a method-level error for the query call.
GetMethod(JmapMethodError)
The server returned a method-level error for the get call.
Trait Implementations§
Source§impl Error for JmapEmailSubmissionQueryError
impl Error for JmapEmailSubmissionQueryError
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<JmapEmailSubmissionQueryError> for JmapClientStdError
Available on crate feature client only.
impl From<JmapEmailSubmissionQueryError> for JmapClientStdError
Available on crate feature
client only.Source§fn from(source: JmapEmailSubmissionQueryError) -> Self
fn from(source: JmapEmailSubmissionQueryError) -> Self
Converts to this type from the input type.
Source§impl From<JmapSendError> for JmapEmailSubmissionQueryError
impl From<JmapSendError> for JmapEmailSubmissionQueryError
Source§fn from(source: JmapSendError) -> Self
fn from(source: JmapSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JmapEmailSubmissionQueryError
impl RefUnwindSafe for JmapEmailSubmissionQueryError
impl Send for JmapEmailSubmissionQueryError
impl Sync for JmapEmailSubmissionQueryError
impl Unpin for JmapEmailSubmissionQueryError
impl UnsafeUnpin for JmapEmailSubmissionQueryError
impl UnwindSafe for JmapEmailSubmissionQueryError
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