Expand description
A set of APIs supported by the client along with their primitives.
Structs§
- Block
Import Notification - Summary of an imported block
- Client
Info - Client info
- Finality
Notification - Summary of a finalized block.
- IoInfo
- I/O statistics for client instance.
- Memory
Info - Memory statistics for client instance.
- Memory
Size - A wrapper to store the size of some memory.
- Unpin
Handle - Keeps a specific block pinned while the handle is alive.
Once the last handle instance for a given block is dropped, the
block is unpinned in the
Backend
. - Unpin
Handle Inner - Sends a message to the pinning-worker once dropped to unpin a block in the backend.
- Usage
Info - Usage statistics for running client instance.
Enums§
- Unpin
Worker Message - Message that signals notification-based pinning actions to the pinning-worker.
Traits§
- Block
Backend - Interface for fetching block data.
- BlockOf
- Figure out the block type for a given type (for now, just a
Client
). - Blockchain
Events - A source of blockchain events.
- PreCommit
Actions - Interface to perform auxiliary actions before committing a block import or finality operation.
- Provide
Uncles - Provide a list of potential uncle headers for a given block.
Type Aliases§
- AuxData
Operations - List of operations to be performed on storage aux data.
First tuple element is the encoded data key.
Second tuple element is the encoded optional data to write.
If
None
, the key and the associated data are deleted from storage. - BadBlocks
- Known bad block hashes.
- Finality
Notifications - A stream of block finality notifications.
- Fork
Blocks - Expected hashes of blocks at given heights.
- Import
Notifications - Type that implements
futures::Stream
of block import events. - OnFinality
Action - Callback invoked before committing the operations created during block finalization. This gives the opportunity to perform auxiliary pre-commit actions and optionally enqueue further storage write operations to be atomically performed on commit.
- OnImport
Action - Callback invoked before committing the operations created during block import. This gives the opportunity to perform auxiliary pre-commit actions and optionally enqueue further storage write operations to be atomically performed on commit.