pub enum JmapCloseAfter {
No,
State,
}Expand description
JMAP EventSource closeafter query value (RFC 8620 §7.3): when the server
closes the streaming response.
Variants§
No
Never close: stream many JmapStateChange frames over one socket.
The socket is unavailable for parallel JMAP POSTs while the stream is
open.
State
Close after the first JmapStateChange: frees the socket for
follow-up */changes + */get POSTs, then resubscribe (IMAP
IDLE-like pattern). Recommended for
JmapEventSource.
Trait Implementations§
Source§impl Clone for JmapCloseAfter
impl Clone for JmapCloseAfter
Source§fn clone(&self) -> JmapCloseAfter
fn clone(&self) -> JmapCloseAfter
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 moreimpl Copy for JmapCloseAfter
Auto Trait Implementations§
impl Freeze for JmapCloseAfter
impl RefUnwindSafe for JmapCloseAfter
impl Send for JmapCloseAfter
impl Sync for JmapCloseAfter
impl Unpin for JmapCloseAfter
impl UnsafeUnpin for JmapCloseAfter
impl UnwindSafe for JmapCloseAfter
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