Skip to main content

Crate topcoat_runtime

Crate topcoat_runtime 

Source

Macros§

impl_surrogate
impl_surrogate_mut
impl_surrogate_ref

Structs§

Arguments
A tuple of call arguments encoded as a JSON array.
ArraySurrogate
A fixed-size sequence of runtime values.
BindAttribute
BoolSurrogate
Event
EventHandler
An attribute that attaches a browser event handler to an element.
EventTarget
Expr
A value with a JavaScript expression that can produce it in the browser.
F64Surrogate
I8Surrogate
A i8 in a runtime expression.
I16Surrogate
A i16 in a runtime expression.
I32Surrogate
A i32 in a runtime expression.
I64Surrogate
A i64 in a runtime expression.
I128Surrogate
A i128 in a runtime expression.
IsizeSurrogate
A isize in a runtime expression.
Js
JavaScript source and captured values for a runtime expression.
JsBuilder
Builds a Js from source and captured values, in order.
LinkProps
A link that opens a page without reloading the whole document. The server renders the destination and the runtime updates the current document with the result.
LinkPropsBuilder
Typestate builder for LinkProps, created by LinkProps::builder(). build() becomes available once every required property has been set.
OptionSurrogate
ProcedureSurrogaterouter
A procedure captured by a runtime expression.
ResultSurrogate
RuntimeLayerrouter
A Layer that handles runtime requests at each page’s URL.
RuntimeSetup
Marks a router’s app context as configured for the browser runtime.
ShardRequestrouter
The body of a request re-rendering a shard: the current values of its arguments and of the signals its content created.
ShardScoperouter
A shard invocation’s content between the markers the browser finds it by.
Signal
Reactive state shared by browser expressions.
SignalId
The identity of a signal, shared by the server and the browser runtime.
SignalSurrogate
SignalValues
Signal values sent by the client for a server render, keyed by signal id.
SliceSurrogate
A borrowed sequence of runtime values.
StrSurrogate
StringSurrogate
TupleRefSurrogate
A borrowed tuple of runtime values.
U8Surrogate
A u8 in a runtime expression.
U16Surrogate
A u16 in a runtime expression.
U32Surrogate
A u32 in a runtime expression.
U64Surrogate
A u64 in a runtime expression.
U128Surrogate
A u128 in a runtime expression.
UsizeSurrogate
A usize in a runtime expression.
VecSurrogate
An owned sequence of runtime values.
link
A link that opens a page without reloading the whole document. The server renders the destination and the runtime updates the current document with the result.

Enums§

PrefetchMode
Controls when the browser loads a linked page before the user follows it.

Constants§

RUNTIME_PROTOCOLrouter
The WebSocket subprotocol for runtime connections.
SCRIPT

Statics§

RUNTIME_HEADERrouter
The header that identifies an HTTP page rerun.

Traits§

EventHandlerFn
RouterBuilderRuntimeExtrouter
Sets up the browser runtime on a RouterBuilder.
SignalValue
A value that can be sent to the browser and restored from browser state.
Surrogate
Surrogated
TupleProject
A tuple whose elements can be borrowed as runtime values.
TypedProcedurerouter
A procedure’s argument and return types for calls in runtime expressions.

Functions§

connected
Returns whether this render runs over a browser connection and marks the content as needing one.
connected_untracked
Returns whether this render runs over a browser connection without asking the browser to open one.
link_attrs
Creates attributes that let an <a> element use runtime navigation.
prefetch_mode
Returns the default prefetch mode for links in this context.
signal
Creates a signal holding the value init returns.