pub struct SlowModeError {
pub retry_after: UTCDate,
}Expand description
Outcome of a ChatBackend::slow_mode_check rejection.
Per draft-atwood-jmap-chat-00 §Chat slowModeSeconds plus spec commit
de60acb (2026-05-11) which softened the manage-channels exemption to
SHOULD: a non-exempt member who sends faster than the configured rate
MUST be rejected with a rateLimited SetError carrying a
serverRetryAfter UTCDate that tells the client when it may retry.
retry_after is a fully-formed jmap_types::UTCDate — the backend
has already done the arithmetic (typically “now + remaining slow-mode
window”). The handler serialises it verbatim onto the wire as the
serverRetryAfter SetError extra field.
Fields§
§retry_after: UTCDateWhen the rate-limited sender may retry.
Trait Implementations§
Source§impl Clone for SlowModeError
impl Clone for SlowModeError
Source§fn clone(&self) -> SlowModeError
fn clone(&self) -> SlowModeError
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 moreAuto Trait Implementations§
impl Freeze for SlowModeError
impl RefUnwindSafe for SlowModeError
impl Send for SlowModeError
impl Sync for SlowModeError
impl Unpin for SlowModeError
impl UnsafeUnpin for SlowModeError
impl UnwindSafe for SlowModeError
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