Crate floem_reactive

Crate floem_reactive 

Source
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. This unsync variant stores its value on the UI thread.
DerivedRwSignal
A derived signal backed by a local RwSignal (UI-thread only).
Effect
Handle for a running effect. Prefer Effect::new over create_effect.
Memo
A memoized derived value that only recomputes when one of its tracked dependencies changes, and only notifies dependents when its value changes.
ReactiveId
An internal id which can reference a Signal/Effect/Scope.
ReadSignal
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.
SignalTracker
SyncBaseSignal
Thread-safe variant that stores the signal in the sync runtime.
SyncDerivedRwSignal
A derived signal backed by a thread-safe RwSignal.
Trigger
UpdaterEffect
Internal updater effect handle. Prefer the associated constructors over the free functions.
WriteSignal
A setter only Signal

Enums§

ReadRef
WriteRef

Traits§

SignalGet
SignalRead
SignalTrack
SignalUpdate
SignalWith
SignalWrite

Functions§

as_child_of_current_scopeDeprecated
Wrap the closure so that whenever the closure runs, it will be under a child Scope of the current Scope
batchDeprecated
create_base_signalDeprecated
create_derived_rw_signal
create_effectDeprecated
Create an Effect that runs the given function whenever the subscribed Signals in that function are updated.
create_memoDeprecated
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_signalDeprecated
Creates a new RwSignal which can act both as a setter and a getter.
create_signalDeprecated
Creates a new setter and getter Signal.
create_stateful_updaterDeprecated
Create an effect updater that runs on_change when any signals within compute subscribe to changes. compute is immediately run and its return value is returned from create_updater.
create_sync_derived_rw_signal
create_trackerDeprecated
create_triggerDeprecated
create_updaterDeprecated
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
untrackDeprecated
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_scopeDeprecated
Runs the given code with the given Scope

Type Aliases§

SyncReadSignal
SyncRwSignal
SyncWriteSignal