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§
- Hydration
Context - Data shared between the frontend and the backend for hydration of server functions.
- Serialize
Context Entry - An entry into the serialized context. The order entries are created in must be consistent between the server and the client.
- Serialized
Hydration Data - 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§
- Take
Data Error - 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.