#[non_exhaustive]pub enum ServerRetryAfterError {
Malformed(Value),
}Expand description
Error from server_retry_after when the serverRetryAfter field is
present but doesn’t parse as a jmap_types::UTCDate.
The raw JSON value is preserved for diagnostics — callers can log it to surface server-side bugs (e.g. emitting a numeric-seconds form when the workspace convention is a UTCDate string).
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.
Malformed(Value)
The serverRetryAfter field was present in the SetError.extra
map but its value did not deserialise into a UTCDate. The raw
JSON value is included for diagnostics.
Trait Implementations§
Source§impl Clone for ServerRetryAfterError
impl Clone for ServerRetryAfterError
Source§fn clone(&self) -> ServerRetryAfterError
fn clone(&self) -> ServerRetryAfterError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerRetryAfterError
impl Debug for ServerRetryAfterError
Source§impl Display for ServerRetryAfterError
impl Display for ServerRetryAfterError
impl Eq for ServerRetryAfterError
Source§impl Error for ServerRetryAfterError
impl Error for ServerRetryAfterError
1.30.0 · 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 PartialEq for ServerRetryAfterError
impl PartialEq for ServerRetryAfterError
Source§fn eq(&self, other: &ServerRetryAfterError) -> bool
fn eq(&self, other: &ServerRetryAfterError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerRetryAfterError
Auto Trait Implementations§
impl Freeze for ServerRetryAfterError
impl RefUnwindSafe for ServerRetryAfterError
impl Send for ServerRetryAfterError
impl Sync for ServerRetryAfterError
impl Unpin for ServerRetryAfterError
impl UnsafeUnpin for ServerRetryAfterError
impl UnwindSafe for ServerRetryAfterError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.