Macros§
Structs§
- Arguments
- A tuple of call arguments encoded as a JSON array.
- Array
Surrogate - A fixed-size sequence of runtime values.
- Bind
Attribute - Bool
Surrogate - Event
- Event
Handler - An attribute that attaches a browser event handler to an element.
- Event
Target - Expr
- A value with a JavaScript expression that can produce it in the browser.
- F64Surrogate
- I8Surrogate
- A
i8in a runtime expression. - I16Surrogate
- A
i16in a runtime expression. - I32Surrogate
- A
i32in a runtime expression. - I64Surrogate
- A
i64in a runtime expression. - I128
Surrogate - A
i128in a runtime expression. - Isize
Surrogate - A
isizein a runtime expression. - Js
- JavaScript source and captured values for a runtime expression.
- JsBuilder
- Builds a
Jsfrom source and captured values, in order. - Link
Props - 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.
- Link
Props Builder - Typestate builder for
LinkProps, created byLinkProps::builder().build()becomes available once every required property has been set. - Option
Surrogate - Procedure
Surrogate router - A procedure captured by a runtime expression.
- Result
Surrogate - Runtime
Layer router - A
Layerthat handles runtime requests at each page’s URL. - Runtime
Setup - Marks a router’s app context as configured for the browser runtime.
- Shard
Request router - The body of a request re-rendering a shard: the current values of its arguments and of the signals its content created.
- Shard
Scope router - A shard invocation’s content between the markers the browser finds it by.
- Signal
- Reactive state shared by browser expressions.
- Signal
Id - The identity of a signal, shared by the server and the browser runtime.
- Signal
Surrogate - Signal
Values - Signal values sent by the client for a server render, keyed by signal id.
- Slice
Surrogate - A borrowed sequence of runtime values.
- StrSurrogate
- String
Surrogate - Tuple
RefSurrogate - A borrowed tuple of runtime values.
- U8Surrogate
- A
u8in a runtime expression. - U16Surrogate
- A
u16in a runtime expression. - U32Surrogate
- A
u32in a runtime expression. - U64Surrogate
- A
u64in a runtime expression. - U128
Surrogate - A
u128in a runtime expression. - Usize
Surrogate - A
usizein 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§
- Prefetch
Mode - Controls when the browser loads a linked page before the user follows it.
Constants§
- RUNTIME_
PROTOCOL router - The WebSocket subprotocol for runtime connections.
- SCRIPT
Statics§
- RUNTIME_
HEADER router - The header that identifies an HTTP page rerun.
Traits§
- Event
Handler Fn - Router
Builder Runtime Ext router - Sets up the browser runtime on a
RouterBuilder. - Signal
Value - A value that can be sent to the browser and restored from browser state.
- Surrogate
- Surrogated
- Tuple
Project - A tuple whose elements can be borrowed as runtime values.
- Typed
Procedure router - 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
initreturns.