pub enum JmapEventSourceYield {
Frame(JmapStateChange),
WantsRead,
WantsWrite(Vec<u8>),
}Expand description
Per-step yield for JmapEventSource.
Variants§
Frame(JmapStateChange)
One decoded push notification. Empty-data SSE frames (pings) surface as
the default JmapStateChange with an empty changed map: keep-alive.
WantsRead
The caller reads more bytes and feeds them back on the next resume.
WantsWrite(Vec<u8>)
The caller writes these bytes; the next resume typically takes None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JmapEventSourceYield
impl RefUnwindSafe for JmapEventSourceYield
impl Send for JmapEventSourceYield
impl Sync for JmapEventSourceYield
impl Unpin for JmapEventSourceYield
impl UnsafeUnpin for JmapEventSourceYield
impl UnwindSafe for JmapEventSourceYield
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