Structs§
- Cloned
- A
StateTransformerthat provides aTwhereT: Cloneas a part of the side effect’s api. - Lazy
Cloned - A
StateTransformerthat provides aTwhereT: Cloneas a part of the side effect’s api, but takes a lazily-evaluated function as input to initialize the side effect state. - Lazy
MutRef - A
StateTransformerthat provides a&mut Tas a part of the side effect’s api, but takes a lazily-evaluated function as input to initialize the side effect state. - LazyRef
- A
StateTransformerthat provides a&Tas a part of the side effect’s api, but takes a lazily-evaluated function as input to initialize the side effect state. - Multi
Side Effect Registrar - Allows you to register multiple side effects sequentially,
unlike the standard
SideEffectRegistrar. Provided bymulti. - MutRef
- A
StateTransformerthat provides a&mut Tas a part of the side effect’s api. - Overridable
Capsule - A
Capsulethat enables overriding its implementation viaOverridableCapsule::set. Seeoverridable_capsulefor more. - Ref
- A
StateTransformerthat provides a&Tas a part of the side effect’s api.
Traits§
- State
Transformer - A way to re-use the same exact side effect code while providing a different
SideEffect::Apibased on the data you have and the data you want in return (such as aCloneor a ref).
Functions§
- as_
listener - A no-op side effect that specifies non-idempotence.
- is_
first_ build - Provides whether or not this is the first build being called.
- multi
- Allows you to register multiple side effects sequentially,
unlike the standard
SideEffectRegistrar. - overridable_
capsule - Allows you to create a
Capsulethat can switch between implementations at runtime. - raw
- Analogous to
SideEffectRegistrar::raw, but uses aStateTransformerto specify the api. - reducer
- Models the state reducer pattern via side effects (similar to
useReducerfrom React hooks). - state
- Similar to
useStatefrom React hooks. Provides a copy of some state and a way to set that state via a callback. - value
- Provides the same given value across builds.