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
The error type for the server function system. This enum encompasses all possible errors that can occur
during the registration, invocation, and processing of server functions.
A Transportable type can be safely transported from the server to the client, and be used for
hydration. Not all types can sensibly be transported, but many can. This trait makes it possible
to customize how types are transported which helps for non-serializable types like dioxus_core::CapturedError.
Commit the initial chunk of the response. This will be called automatically if you are using the
dioxus router when the suspense boundary above the router is resolved. Otherwise, you will need
to call this manually to start the streaming part of the response.
Get the current status of the streaming response. This method is reactive and will cause
the current reactive context to rerun when the status changes.
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.
Runs a future with a manual list of dependencies and returns a resource with the result if the future is finished or a suspended error if it is still running.
A default result type for server functions, which can either be successful or contain an error. The ServerFnResult type
is a convenient alias for a Result type that uses ServerFnError as the error type.