Module context

Module context 

Source
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 Fork trait is used for creating a new instances a context from an existing one.
Join
The Join trait is used for merging multiple instances of a context into one.
SpawnAsync
The SpawnAsync trait provides an interface for spawning asynchronous tasks on a runtime or executor.
SpawnSync
The SpawnSync trait provides an interface for spawning blocking (synchronous) tasks.
Task
The Task trait represents an asynchronous task.
Update
The Update trait is used for updating the state of a context from another.