pub struct PollCtx<'a, InEvent, OutEvent> { /* private fields */ }Expand description
A service context mailbox handle for the Service::poll method.
Implementations§
Source§impl<'a, InEvent, OutEvent> PollCtx<'a, InEvent, OutEvent>
impl<'a, InEvent, OutEvent> PollCtx<'a, InEvent, OutEvent>
Sourcepub fn split(self) -> (InCtx<'a, InEvent>, OutCtx<'a, OutEvent>)
pub fn split(self) -> (InCtx<'a, InEvent>, OutCtx<'a, OutEvent>)
Split this context into its input and output mailbox context handles.
Sourcepub fn emit_batch(&mut self, evs: impl IntoIterator<Item = OutEvent>)
pub fn emit_batch(&mut self, evs: impl IntoIterator<Item = OutEvent>)
Emit a batch of events to the output mailbox.
Auto Trait Implementations§
impl<'a, InEvent, OutEvent> !UnwindSafe for PollCtx<'a, InEvent, OutEvent>
impl<'a, InEvent, OutEvent> Freeze for PollCtx<'a, InEvent, OutEvent>
impl<'a, InEvent, OutEvent> RefUnwindSafe for PollCtx<'a, InEvent, OutEvent>where
InCtx<'a, InEvent>: RefUnwindSafe,
OutCtx<'a, OutEvent>: RefUnwindSafe,
impl<'a, InEvent, OutEvent> Send for PollCtx<'a, InEvent, OutEvent>
impl<'a, InEvent, OutEvent> Sync for PollCtx<'a, InEvent, OutEvent>
impl<'a, InEvent, OutEvent> Unpin for PollCtx<'a, InEvent, OutEvent>
impl<'a, InEvent, OutEvent> UnsafeUnpin for PollCtx<'a, InEvent, OutEvent>where
InCtx<'a, InEvent>: UnsafeUnpin,
OutCtx<'a, OutEvent>: UnsafeUnpin,
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