A typed interaction contract with one click operation.
Signature
Implement Click when a type should satisfy a nominal interaction contract or appear in query[Click](). Hosts may also invoke an ordinary checked click method without this trait; the host owns event dispatch.
Methods
Examples
Implement a click action
A type satisfies the contract with a matching typed method.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
clicked
Rust definition
Trait declaration checked by the interpreter; it is not a Rust SDK trait.
View Rust documentation →Support: runtime