pub enum BackendQueryError<E> {
Method(JmapError),
Other(E),
}Expand description
Error type returned by JmapBackend::query_objects.
RFC 8620 §5.5 lets a /query fail with method errors that only the
backend can detect (unsupportedFilter, unsupportedSort,
anchorNotFound, …). Self::Method carries such an error to the
client unchanged; Self::Other is an internal storage-layer failure
that handlers surface as the redacted serverFail.
Variants§
Method(JmapError)
An RFC 8620 §5.5 method error, returned to the client as-is (type and description). Backends MUST NOT put internal error text in it.
Other(E)
An unexpected storage-layer error.
Trait Implementations§
Source§impl<E> Debug for BackendQueryError<E>where
E: Debug,
impl<E> Debug for BackendQueryError<E>where
E: Debug,
Source§impl<E> Display for BackendQueryError<E>where
E: Display,
impl<E> Display for BackendQueryError<E>where
E: Display,
Source§impl<E> Error for BackendQueryError<E>where
E: Error + 'static,
impl<E> Error for BackendQueryError<E>where
E: Error + 'static,
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<E> From<E> for BackendQueryError<E>
impl<E> From<E> for BackendQueryError<E>
Source§fn from(e: E) -> BackendQueryError<E>
fn from(e: E) -> BackendQueryError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for BackendQueryError<E>where
E: Freeze,
impl<E> RefUnwindSafe for BackendQueryError<E>where
E: RefUnwindSafe,
impl<E> Send for BackendQueryError<E>where
E: Send,
impl<E> Sync for BackendQueryError<E>where
E: Sync,
impl<E> Unpin for BackendQueryError<E>where
E: Unpin,
impl<E> UnsafeUnpin for BackendQueryError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for BackendQueryError<E>where
E: UnwindSafe,
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