Crate dioxus_fullstack_protocol

Source
Expand description

§Fullstack Protocol

Dioxus-fullstack-protocol is the internal protocol the dioxus web and server renderers use to communicate with each other in dioxus fullstack. It is used to send futures and values from the server to the client during fullstack rendering.

Structs§

HydrationContext
Data shared between the frontend and the backend for hydration of server functions.
SerializeContextEntry
An entry into the serialized context. The order entries are created in must be consistent between the server and the client.
SerializedHydrationData
Data that was serialized on the server for hydration on the client. This includes extra information about the types and sources of the serialized data in debug mode

Enums§

TakeDataError
An error that can occur when trying to take data from the server

Functions§

head_element_hydration_entry
Create a new entry in the serialize context for the head element hydration
is_hydrating
Check if the client is currently rendering a component for hydration. Always returns true on the server.
serialize_context
Get or insert the current serialize context. On the client, the hydration context this returns will always return TakeDataError::DataNotAvailable if hydration of the current chunk is finished.