pub trait MakeUnrx {
type Unrx: Serialize + for<'de> Deserialize<'de> + MakeRx;
fn make_unrx(self) -> Self::Unrx;
}
Expand description
A trait for reactive struct
s 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
type Unrx: Serialize + for<'de> Deserialize<'de> + MakeRx
type Unrx: Serialize + for<'de> Deserialize<'de> + MakeRx
The type of the unreactive version that we’ll convert to.