pub trait Entrypoint<C, I> {
// Required method
fn create_root_context(
self,
event_handlers: EventHandlerStack,
context_id: u32,
) -> Box<dyn RootContext>;
}Expand description
Trait that defines the entrypoint for a Plugin.
Required Methods§
Sourcefn create_root_context(
self,
event_handlers: EventHandlerStack,
context_id: u32,
) -> Box<dyn RootContext>
fn create_root_context( self, event_handlers: EventHandlerStack, context_id: u32, ) -> Box<dyn RootContext>
Generate a RootContext with the given event handlers and context id.