Expand description
Actions, envelopes, and application state traits.
This module defines the core data-flow primitives:
Action– a strongly-typed, serialisable event payload.ActionEnvelope– the type-erased transport format dispatched through theRuntime.ActionId– a stable, content-addressed identifier derived from the action’s type name.AppState– trait for application state managed by the runtime.
Re-exports§
pub use video::VideoPause;pub use video::VideoPlay;pub use video::VideoSeek;pub use video::VideoSetMuted;pub use video::VideoSetRate;pub use video::VideoSetVolume;pub use video::VideoStop;
Modules§
Structs§
- Action
Envelope - A type-erased action envelope that can be stored in widget trees and
dispatched through the
Runtime. - Action
Id - A stable, globally unique identifier for an
Actiontype. - Action
Ref - A typed wrapper around an
Actionvalue that converts into anActionEnvelopeviaFrom. - Cursor
Changed - Payload dispatched when the caret/anchor position changes in a TextInput.
- Redo
- Built-in action to trigger a redo operation.
- Undo
- Built-in action to trigger an undo operation.
- Update
Text Input - Action dispatched by the text-editing controller when the user modifies a
TextInputfield.
Traits§
- Action
- A strongly-typed, serialisable event payload.
- AppState
- Trait for application state managed by the
Runtime.
Type Aliases§
- Reducer
- Type alias for the legacy 3-argument reducer signature used by
Runtime::register_reducer.