Skip to main content

Crate topcoat_runtime

Crate topcoat_runtime 

Source

Macros§

impl_surrogate
impl_surrogate_mut
impl_surrogate_ref

Structs§

BindAttribute
BoolSurrogate
Event
EventHandler
An event handler attribute. Emits a JavaScript closure expression into a data-topcoat-on:<event> attribute on the element. The browser scanner wraps it in new Function('__cx', ...) to obtain a real handler.
EventTarget
Expr
F64Surrogate
Js
The JavaScript source of a runtime expression, captured at its $(..) site.
JsBuilder
Builds a Js from source and captured values, in order.
OptionSurrogate
PageRerunRouterouter
A Route that re-runs a page with the signal values a client sends.
ProcedureIdrouter
The identity of a procedure, stable across the server and the client runtime.
ProcedureRouterouter
A Route that handles calls to one server procedure.
ProcedureSurrogaterouter
The surrogate a Procedure value turns into inside a runtime expression.
ResultSurrogate
RuntimeSetup
The app context value marking a router as set up for the browser runtime.
ShardIdrouter
The identity of a shard, stable across the server and the client runtime.
ShardRequestrouter
The body of a request re-rendering a shard: the current values of its arguments and of the signals its content created.
ShardRouterouter
A Route that re-renders one shard.
ShardScoperouter
Signal
A piece of state that lives in the browser.
SignalId
The identity of a signal, shared by the server and the browser runtime.
SignalSurrogate
SignalValues
The current values of signals a client sends along with a run, keyed by signal id.
StrSurrogate
StringSurrogate

Constants§

SCRIPT

Traits§

EventHandlerFn
Procedurerouter
An async server function callable from the client runtime.
RouterBuilderProcedureExtrouter
Registers server procedures on a RouterBuilder.
RouterBuilderRuntimeExtrouter
Sets up the browser runtime on a RouterBuilder.
RouterBuilderShardExtrouter
Registers shards on a RouterBuilder.
Shardrouter
A component that re-renders on the server when its runtime expression arguments change.
SignalValue
A value a signal can hold: one of the runtime’s vocabulary types, which can be serialized into the page for the browser to pick up and read back from what the browser sends.
Surrogate
Surrogated
TypedProcedurerouter
The argument and return types of a Procedure, as seen by runtime expressions calling it.

Functions§

signal
Creates a signal holding the value init returns.

Type Aliases§

ProcedureFuturerouter
The future returned by Procedure::handle: a boxed, Send future borrowing the procedure and its request context.
ShardFuturerouter
The future returned by Shard::render: a boxed, Send future borrowing the shard and its request context.