pub enum JmapWatchMailboxYield {
WantsRead,
WantsWrite(Vec<u8>),
Event(WatchEvent),
}Available on crate feature
jmap only.Expand description
Yield mixing socket I/O requests and pre-diffed WatchEvents.
Variants§
WantsRead
Read more bytes and feed them via bytes on the next resume.
WantsWrite(Vec<u8>)
Write these bytes; the next resume usually takes bytes: None.
Event(WatchEvent)
One pre-diffed delta from the in-memory shadow.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JmapWatchMailboxYield
impl RefUnwindSafe for JmapWatchMailboxYield
impl Send for JmapWatchMailboxYield
impl Sync for JmapWatchMailboxYield
impl Unpin for JmapWatchMailboxYield
impl UnsafeUnpin for JmapWatchMailboxYield
impl UnwindSafe for JmapWatchMailboxYield
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, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.