pub struct ModuleEventEmitter { /* private fields */ }Implementations§
Source§impl ModuleEventEmitter
impl ModuleEventEmitter
Sourcepub fn emit(&self, event: &str, payload: WhiskerValue) -> bool
pub fn emit(&self, event: &str, payload: WhiskerValue) -> bool
Enqueues one declared service event for delivery on the next runtime
drive. Returns false when the event was not declared by the module.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleEventEmitter
impl !Send for ModuleEventEmitter
impl !Sync for ModuleEventEmitter
impl !UnwindSafe for ModuleEventEmitter
impl Forget for ModuleEventEmitter
impl Freeze for ModuleEventEmitter
impl Move for ModuleEventEmitter
impl Unpin for ModuleEventEmitter
impl UnsafeUnpin for ModuleEventEmitter
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