pub trait MakeRx {
    type Rx: MakeUnrx;

    fn make_rx(self) -> Self::Rx;
}
Expand description

A trait for structs that can be made reactive. Typically, this will be derived with the #[make_rx] macro, though it can be implemented manually if you have more niche requirements.

Required Associated Types

The type of the reactive version that we’ll convert to. 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.

Required Methods

Transforms an instance of the struct into its reactive version.

Implementors