Module dioxus_fullstack::prelude

source ·
Expand description

A prelude of commonly used items in dioxus-fullstack.

Re-exports§

Structs§

  • Axumserver and axum
    An adapter for axum extractors for the server context
  • A shared context for server functions that contains information about the request and middleware state. This allows you to pass data between your server framework and the server functions. This can be used to pass request information or information about the state of the server. For example, you could pass authentication data though this context to your server functions.
  • Extract a value from the server context provided through the launch builder context or DioxusServerContext::insert
  • 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.
  • An incremental renderer.
  • A configuration for the incremental renderer.
  • A future that provides the server context to the inner future
  • State used by render_handler to render a dioxus component with axum
  • SSRStateserver
    State used in server side rendering. This utilizes a pool of dioxus_ssr::Renderers to cache static templates between renders.
  • 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
  • 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§

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

Traits§

  • A extension trait with utilities for integrating Dioxus with your Axum router.
  • A trait for extracting types from the server context

Functions§

  • extractserver
    Extract some part from the current server request.
  • SSR renderer handler for Axum with added context injection.
  • Get information about the current server request.
  • 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.
  • 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.
  • Run a function inside of the server context.

Attribute Macros§

  • 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.