Module resources
Expand description
Resources a widget publishes: the tree of open tilo_actions::ResourceSpecs
with the actions each exports to the palette, agents and scripts, and the
bounded pages the broker’s pull directory reads.
A widget takes part by providing PublishesResources; the host reaches
every laid-out widget through its node map with the functions below.
Traits§
Functions§
- action_
directory_ invocation_ domain widget’s invocation-domain coverage.- action_
directory_ resource_ page - action_
directory_ revision - action_
directory_ visibility - The action disclosing container
resource_idofwidget, if any. - admits_
outside_ document - Whether
operationmay be published ononby a widget below its component’s root: views and effects may, a document mutation never does. - caller_
view_ resources - document_
action_ result - The first
PublishesResources::document_action_resultinwidget’s tree, depth first. A publisher that wraps another forwards to it. - outside_
document resourcewithout document actions, at any depth: what a widget below its component’s root may publish. The root is the one boundary that speaks for the resource; every host walk publishes and dispatches what the rest of the tree adds through this.- resolved_
outside_ document resource, resolved by id below its component’s root, without document actions. A lookup is asked for ids the root publishes too (an item of its own), so this drops them without complaint: the root’s publication carries them.- resource
- Resolve resource
idinwidget. - resource_
for - Resolve resource
idinparticipant’s tree ofwidget. - resource_
pending - Whether resource
idofwidgetmay resolve once what it reads lands (PublishesResources::resource_pending). - resources
- resources_
for widget’s resources asparticipantsees them.- shared_
resources - The resources
widgethas open, as a shared forest (PublishesResources::shared_resources_for).