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