Skip to main content Crate topcoat_runtime Copy item path Source impl_surrogate impl_surrogate_mut impl_surrogate_ref 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 PageRerunRoute routerA Route that re-runs a page with the signal values a client sends. ProcedureId routerThe identity of a procedure, stable across the server and the client
runtime. ProcedureRoute routerA Route that handles calls to one server procedure. ProcedureSurrogate routerThe 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. ShardId routerThe identity of a shard, stable across the server and the client runtime. ShardRequest routerThe body of a request re-rendering a shard: the current values of its
arguments and of the signals its content created. ShardRoute routerA Route that re-renders one shard. ShardScope routerSignal 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 SCRIPT EventHandlerFn Procedure routerAn async server function callable from the client runtime. RouterBuilderProcedureExt routerRegisters server procedures on a RouterBuilder . RouterBuilderRuntimeExt routerSets up the browser runtime on a RouterBuilder . RouterBuilderShardExt routerRegisters shards on a RouterBuilder . Shard routerA 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 TypedProcedure routerThe argument and return types of a Procedure , as seen by runtime
expressions calling it. signal Creates a signal holding the value init returns. ProcedureFuture routerThe future returned by Procedure::handle : a boxed, Send future
borrowing the procedure and its request context. ShardFuture routerThe future returned by Shard::render : a boxed, Send future borrowing
the shard and its request context.