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