pub enum JmapEmailQueryError {
MissingQueryResponse,
MissingGetResponse,
Send(JmapSendError),
ParseQueryResponse(Error),
ParseGetResponse(Error),
QueryMethod(JmapMethodError),
GetMethod(JmapMethodError),
}Expand description
Failure causes during a batched JMAP Email/query + Email/get flow.
Variants§
MissingQueryResponse
The response carried no query response.
MissingGetResponse
The response carried no get response.
Send(JmapSendError)
The inner send coroutine failed.
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 Debug for JmapEmailQueryError
impl Debug for JmapEmailQueryError
Source§impl Display for JmapEmailQueryError
impl Display for JmapEmailQueryError
Source§impl Error for JmapEmailQueryError
impl Error for JmapEmailQueryError
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<JmapEmailQueryError> for JmapClientStdError
Available on crate feature client only.
impl From<JmapEmailQueryError> for JmapClientStdError
Available on crate feature
client only.Source§fn from(source: JmapEmailQueryError) -> Self
fn from(source: JmapEmailQueryError) -> Self
Converts to this type from the input type.
Source§impl From<JmapSendError> for JmapEmailQueryError
impl From<JmapSendError> for JmapEmailQueryError
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 JmapEmailQueryError
impl RefUnwindSafe for JmapEmailQueryError
impl Send for JmapEmailQueryError
impl Sync for JmapEmailQueryError
impl Unpin for JmapEmailQueryError
impl UnsafeUnpin for JmapEmailQueryError
impl UnwindSafe for JmapEmailQueryError
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