Entrypoint

Trait Entrypoint 

Source
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§

Source

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.

Implementors§

Source§

impl<H, I> Entrypoint<ConfigureContext, I> for H
where H: IntoHandler<ConfigureContext, I>, H::Handler: 'static, H::Output: IntoHandlerResult,

Source§

impl<H, I> Entrypoint<FilterContext, I> for H
where for<'a> H: IntoHandler<FilterContext, I, Output = ()> + Clone + 'a,

Source§

impl<H, I> Entrypoint<ResponseContext<()>, I> for H
where for<'a> H: IntoHandler<ResponseContext<()>, I, Output = ()> + Clone + 'a,

Source§

impl<H, T> Entrypoint<RequestContext, T> for H
where for<'a> H: IntoHandler<RequestContext, T> + Clone + 'a, H::Output: IntoFlow<RequestData = ()>,