Module prelude

Source
Expand description

A prelude of commonly used items in dioxus-fullstack.

Re-exports§

pub use server_fn::ServerFn as _;
pub use server_fn;
pub use crate::server::*;axum

Structs§

Axumserver and axum
An adapter for axum extractors for the server context
DioxusServerContextserver
A shared context for server functions that contains information about the request and middleware state.
FromContextserver
Extract a value from the server context provided through the launch builder context or DioxusServerContext::insert
FullstackHTMLTemplateserver
The template that wraps the body of the HTML for a fullstack page. This template contains the data needed to hydrate server functions that were run on the server.
IncrementalRendererserver
An incremental renderer.
IncrementalRendererConfigserver
A configuration for the incremental renderer.
ProvideServerContextserver
A future that provides the server context to the inner future
SSRStateserver
State used in server side rendering. This utilizes a pool of dioxus_ssr::Renderers to cache static templates between renders.
ServeConfigserver
Used to configure how to serve a Dioxus application. It contains information about how to serve static assets, and what content to render with [dioxus-ssr]. See ServeConfigBuilder to create a ServeConfig
ServeConfigBuilderserver
A ServeConfig is used to configure how to serve a Dioxus application. It contains information about how to serve static assets, and what content to render with [dioxus-ssr].

Enums§

ServerFnError
Type for errors that can occur when using server functions.

Traits§

FromServerContextserver
A trait for extracting types from the server context

Functions§

extractserver
Extract some part from the current server request.
server_contextserver
Get information about the current server request.
use_server_cached
This allows you to send data from the server to the client. The data is serialized into the HTML on the server and hydrated on the client.
use_server_future
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.
with_server_contextserver
Run a function inside of the server context.

Attribute Macros§

server
Declares that a function is a server function. This means that its body will only run on the server, i.e., when the ssr feature is enabled on this crate.