Expand description
This module contains basic traits that should be implemented for node context.
Traits in this module can be used by nodes to restrict the context type and ensure that it can perform certain functions. It also contains definitions and implementations of different types of storages.
For details, see the documentation of each trait.
Modules§
- storage
- This module contains all the different types of storages.
Traits§
- Fork
- The
Forktrait is used for creating a new instances a context from an existing one. - Join
- The
Jointrait is used for merging multiple instances of a context into one. - Spawn
Async - The
SpawnAsynctrait provides an interface for spawning asynchronous tasks on a runtime or executor. - Spawn
Sync - The
SpawnSynctrait provides an interface for spawning blocking (synchronous) tasks. - Task
- The
Tasktrait represents an asynchronous task. - Update
- The
Updatetrait is used for updating the state of a context from another.