Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

📣event

Struct EventWrapper

Wraps an event of type T so clients can search for it by wrapper type.

public struct EventWrapper<T> has copy, drop
Fields

Function emit

Emits the given event wrapped in EventWrapper.

public fun emit<T: copy, drop>(event: T)

Function inner

Borrows the inner event from the wrapper.

public fun inner<T: copy, drop>(wrapper: &nexus_primitives::event::EventWrapper<T>): &T

Last updated