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§
- AnyView
Builder - A builder for creating views from handler functions.
- Shared
Action - Cloneable action handle backed by shared mutable state.
Traits§
- Event
Handler - 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.
- Handler
Once - A one-shot handler that can extract arguments from the environment.
- View
Builder - 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
EventHandlerinto aBoxedEventActionso 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§
- Action
Object - Type alias for a boxed action handler (backwards compatibility).
- Boxed
Action - A boxed action handler that can be called multiple times.
- Boxed
Action Once - A boxed action handler that can only be called once.
- Boxed
Event Action - A boxed event handler that consumes one event payload alongside the environment-driven extractors.