dioxus_web/hydration/
mod.rs

1#[cfg(feature = "hydrate")]
2mod deserialize;
3#[cfg(feature = "hydrate")]
4mod hydrate;
5
6#[cfg(feature = "hydrate")]
7pub use deserialize::*;
8#[cfg(feature = "hydrate")]
9#[allow(unused)]
10pub use hydrate::*;
11
12/// The message sent from the server to the client to hydrate a suspense boundary
13#[derive(Debug)]
14pub(crate) struct SuspenseMessage {
15    #[cfg(feature = "hydrate")]
16    /// The path to the suspense boundary. Each element in the path is an index into the children of the suspense boundary (or the root node) in the order they are first created
17    suspense_path: Vec<u32>,
18    #[cfg(feature = "hydrate")]
19    /// The data to hydrate the suspense boundary with
20    data: Vec<u8>,
21    #[cfg(feature = "hydrate")]
22    #[cfg(debug_assertions)]
23    /// The type names of the data
24    debug_types: Option<Vec<String>>,
25    #[cfg(feature = "hydrate")]
26    #[cfg(debug_assertions)]
27    /// The location of the data in the source code
28    debug_locations: Option<Vec<String>>,
29}