Expand description
§Floem Reactive
RwSignal::new_split returns a separated ReadSignal and WriteSignal for a variable.
An existing RwSignal may be converted using RwSignal::read_only
and RwSignal::write_only where necessary, but the reverse is not possible.
Structs§
- BaseSignal 
- BaseSignal gives you another way to control the lifetime of a Signal apart from Scope.
- DerivedRwSignal 
- A signal that is derived from an RwSignal but lets you specify getters and setters for the signal.
- Memo
- Memo computes the value from the closure on creation, and stores the value.
- ReactiveId 
- An internal id which can reference a Signal/Effect/Scope.
- ReadSignal 
- A getter only Signal
- ReadSignal Value 
- RwSignal
- A read write Signal which can act as both a Getter and a Setter
- Scope
- You can manually control Signal’s lifetime by using Scope.
- SignalTracker 
- Trigger
- WriteSignal 
- A setter only Signal
- WriteSignal Value 
Traits§
Functions§
- as_child_ of_ current_ scope 
- Wrap the closure so that whenever the closure runs, it will be under a child Scope of the current Scope
- batch
- create_base_ signal 
- create_derived_ rw_ signal 
- create_effect 
- Create an Effect that runs the given function whenever the subscribed Signals in that function are updated.
- create_memo 
- Create a Memo which takes the computed value of the given function, and triggers the reactive system when the computed value is different with the last computed value.
- create_rw_ signal 
- Creates a new RwSignal which can act both as a setter and a getter.
- create_signal 
- Creates a new setter and getter Signal.
- create_stateful_ updater 
- Create an effect updater that runs on_changewhen any signals withincomputesubscribe to changes.computeis immediately run and its return value is returned fromcreate_updater.
- create_tracker 
- Creates a SignalTracker that subscribes to any changes in signals used within on_change.
- create_trigger 
- create_updater 
- Create an effect updater that runs on_changewhen any signals that subscribe during the run ofcomputeare updated.computeis immediately run only once, and its value is returned from the call tocreate_updater.
- provide_context 
- Sets a context value to be stored in the reactive system. The stored context value can be retrieved from anywhere by using use_context
- untrack
- Signals that are wrapped with untrackwill not subscribe to any effect.
- use_context 
- Try to retrieve a stored Context value in the reactive system. You can store a Context value anywhere, and retrieve it from anywhere afterwards.
- with_scope 
- Runs the given code with the given Scope