#[non_exhaustive]pub enum BackendChangesError<E> {
TooManyChanges {
limit: u64,
},
Other(E),
}Expand description
Error type returned by JmapBackend::get_changes and
JmapBackend::query_changes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooManyChanges
The sinceState is too old or the server cannot calculate the full set
of intermediate states. Maps to tooManyChanges in the response with
the given suggested limit. Use limit: 0 for cannotCalculateChanges.
Other(E)
An unexpected storage-layer error.
Trait Implementations§
Source§impl<E: Debug> Debug for BackendChangesError<E>
impl<E: Debug> Debug for BackendChangesError<E>
Source§impl<E: Display> Display for BackendChangesError<E>
impl<E: Display> Display for BackendChangesError<E>
Source§impl<E: Error + 'static> Error for BackendChangesError<E>
impl<E: Error + 'static> Error for BackendChangesError<E>
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: Error> From<BackendChangesError<E>> for JmapError
impl<E: Error> From<BackendChangesError<E>> for JmapError
Source§fn from(e: BackendChangesError<E>) -> Self
fn from(e: BackendChangesError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for BackendChangesError<E>where
E: Freeze,
impl<E> RefUnwindSafe for BackendChangesError<E>where
E: RefUnwindSafe,
impl<E> Send for BackendChangesError<E>where
E: Send,
impl<E> Sync for BackendChangesError<E>where
E: Sync,
impl<E> Unpin for BackendChangesError<E>where
E: Unpin,
impl<E> UnsafeUnpin for BackendChangesError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for BackendChangesError<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