Skip to main content

Module handler_for

Module handler_for 

Source
Expand description

Bridge between typed handlers and the runtime router.

BoundHandler<E> pairs a type-erased handler with its endpoint metadata. The bind function captures the handler’s Args at the call site (where type inference works) and erases them, leaving only the endpoint type E.

Structs§

BoundHandler
A handler bound to a specific endpoint type, with the handler’s arg types erased.

Traits§

BindableEndpoint
Trait providing runtime endpoint metadata for binding.

Functions§

bind
Bind a handler to an endpoint type, erasing the handler’s arg types.