pub trait MakeUnrx {
    type Unrx: Serialize + for<'de> Deserialize<'de> + MakeRx;

    fn make_unrx(self) -> Self::Unrx;
}
Expand description

A trait for reactive structs that can be made un-reactive. This is the opposite of MakeRx, and is intended particularly for state freezing. Like MakeRx, this will usually be derived automatically with the #[make_rx] macro, but you can also implement it manually.

Required Associated Types

The type of the unreactive version that we’ll convert to.

Required Methods

Transforms an instance of the struct into its unreactive version. By having this as an associated type, we can associate the reactive type with the unreactive, meaning greater inference and fewer arguments that the user needs to provide to macros.

Implementors