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§
- Base
Signal - BaseSignal gives you another way to control the lifetime of a Signal apart from Scope. This unsync variant stores its value on the UI thread.
- Derived
RwSignal - A derived signal backed by a local
RwSignal(UI-thread only). - Effect
- Handle for a running effect. Prefer
Effect::newovercreate_effect. - Memo
- A memoized derived value that only recomputes when one of its tracked dependencies changes, and only notifies dependents when its value changes.
- Reactive
Id - An internal id which can reference a Signal/Effect/Scope.
- Read
Signal - A getter only Signal
- Runtime
- The internal reactive Runtime which stores all the reactive system states in a thread local.
- 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.
- Signal
Tracker - Sync
Base Signal - Thread-safe variant that stores the signal in the sync runtime.
- Sync
Derived RwSignal - A derived signal backed by a thread-safe
RwSignal. - Trigger
- Updater
Effect - Internal updater effect handle. Prefer the associated constructors over the free functions.
- Write
Signal - A setter only Signal
Enums§
Traits§
Functions§
- as_
child_ of_ current_ scope Deprecated - Wrap the closure so that whenever the closure runs, it will be under a child Scope of the current Scope
- batch
Deprecated - create_
base_ signal Deprecated - create_
derived_ rw_ signal - create_
effect Deprecated - Create an Effect that runs the given function whenever the subscribed Signals in that function are updated.
- create_
memo Deprecated - Create a Memo which takes the computed value of the given function, and triggers the reactive system when the computed value is different from the last computed value.
- create_
rw_ signal Deprecated - Creates a new RwSignal which can act both as a setter and a getter.
- create_
signal Deprecated - Creates a new setter and getter Signal.
- create_
stateful_ updater Deprecated - 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_
sync_ derived_ rw_ signal - create_
tracker Deprecated - create_
trigger Deprecated - create_
updater Deprecated - 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
Deprecated - 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 Deprecated - Runs the given code with the given Scope