Structs§
- The handle given to
Capsule
s in order toCapsule::build
theirCapsule::Data
. SeeCapsuleReader
andSideEffectRegistrar
for more. - Allows you to read the current data of capsules based on the given state of the container txn.
- Containers store the current data and state of the data flow graph created by capsules and their dependencies/dependents. See the README for more.
- Represents a handle onto a particular listener, as created with
Container::listen
. - Used to build a mocked
CapsuleReader
for use in unit testing capsules. - Registers the given side effect and returns its build api. You can only call register once on purpose (it consumes self); to register multiple side effects, simply pass them in together!
Traits§
- Shorthand for
Clone + Send + Sync + 'static
, which makes returningimpl Trait
far easier from capsules, whereTrait
is often anFn
from side effects. - Capsules are blueprints for creating some immutable data and do not actually contain any data themselves. See the documentation for more.
- Represents a static or dynamic capsule key. See
Capsule::key
. - A list of capsules with cloneable data. This is either a singular capsule, like
foo_capsule
, or a tuple, like(foo_capsule, bar_capsule)
. - A list of capsules that can be read via a ref. This is either a singular capsule, like
foo_capsule
, or a tuple, like(foo_capsule, bar_capsule)
. - Represents a side effect that can be utilized within the build function.