Skip to main content

Module handler

Module handler 

Source
Expand description

Handler type aliases for action callbacks.

This module provides type aliases for boxed closures that take an environment reference. These are used for event handlers and callbacks throughout the framework.

Structs§

AnyViewBuilder
A builder for creating views from handler functions.
SharedAction
Cloneable action handle backed by shared mutable state.

Traits§

EventHandler
A repeatable event handler that consumes a typed event payload plus environment-extracted arguments.
Handler
A repeatable handler that can extract arguments from the environment.
HandlerOnce
A one-shot handler that can extract arguments from the environment.
ViewBuilder
A trait for types that can repeatedly construct views.

Functions§

boxed_action
Creates a boxed action from a handler.
boxed_action_once
Creates a boxed one-shot action from a handler.
boxed_event_handler
Erases an EventHandler into a BoxedEventAction so a component config can store the callback as a typed field without leaking the extractor-tuple generics.
shared_action
Creates a shared action from a closure that ignores the environment.

Type Aliases§

ActionObject
Type alias for a boxed action handler (backwards compatibility).
BoxedAction
A boxed action handler that can be called multiple times.
BoxedActionOnce
A boxed action handler that can only be called once.
BoxedEventAction
A boxed event handler that consumes one event payload alongside the environment-driven extractors.