Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn<F, Params> = Callback<(), CtxFree<F>, Params>;
Expand description

Type alias for context-free handlers (no owned context).

This is Callback<(), CtxFree<F>, Params> — the ctx: () field is a ZST (zero bytes), identical codegen to the old FunctionSystem.

Aliased Type§

pub struct HandlerFn<F, Params> {
    pub ctx: (),
    /* private fields */
}

Fields§

§ctx: ()

Per-callback owned state. Accessible outside dispatch.