Skip to main content

Module resource_actions

Module resource_actions 

Expand description

Toolkit-owned host for a small app’s typed resource/action surface.

Apps provide their retained root, one discoverable resource, and an immediate operation closure. The host supplies the widget forwarding and invocation lifecycle; scaffolds do not need to copy that infrastructure into every new project.

Structs§

ActionForm
One action whose arguments and live UI state are declared together.
ResourceActionHost
Transparent retained root that publishes and executes one app resource.

Constants§

OPERATION_TYPE
Shared effect-operation type used by the one-resource app host.

Traits§

ActionValue
A value that can connect a LocalState field directly to a typed resource action.

Functions§

form
Mount a connected action form around its visible controls.
immediate
Wrap a root with a synchronous typed resource operation.
resource
Build one resource with a unit operation.
typed_resource
Build one resource whose arguments are schema-bound.