Skip to main content

Module action

Module action 

Source
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 the Runtime.
  • 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§

video

Structs§

ActionEnvelope
A type-erased action envelope that can be stored in widget trees and dispatched through the Runtime.
ActionId
A stable, globally unique identifier for an Action type.
ActionRef
A typed wrapper around an Action value that converts into an ActionEnvelope via From.
CursorChanged
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.
UpdateTextInput
Action dispatched by the text-editing controller when the user modifies a TextInput field.

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.