pub struct FrozenApp {
pub global_state: FrozenGlobalState,
pub route: Option<PathMaybeWithLocale>,
pub state_store: HashMap<PathMaybeWithLocale, String>,
}
Expand description
A representation of a frozen app.
This is only Clone
for fault tolerance. Do NOT ever clone this unless you
seriously know what you’re doing!
Fields§
§global_state: FrozenGlobalState
The frozen global state. This will serialize to a TemplateState
,
unless it is set to
route: Option<PathMaybeWithLocale>
The frozen route. This will be None
if the app hadn’t properly
hydrated when it was frozen.
state_store: HashMap<PathMaybeWithLocale, String>
The frozen state store. We store this as a HashMap
as this level
so that we can avoid another deserialization.
Note that this only contains the active state store, preloads are not preserved to save space (and because they can always be re-instantiated )
Trait Implementations§
source§impl<'de> Deserialize<'de> for FrozenApp
impl<'de> Deserialize<'de> for FrozenApp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FrozenApp
impl Send for FrozenApp
impl Sync for FrozenApp
impl Unpin for FrozenApp
impl UnwindSafe for FrozenApp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more