Module types

Module types 

Source
Expand description

Common types used across multiple components.

Structs§

BlockExecutionResultsOrChunk
Represents execution results for all deploys in a single block or a chunk of this complete value.
ChainspecInfo
Summary information from the chainspec.
ExecutableBlock
Data necessary for a block to be executed.
FinalizedBlock
The piece of information that will become the content of a future block after it was finalized and before execution happened yet.
GetStatusResult
Result for “info_get_status” RPC response.
InternalEraReport
EraReport used only internally. The one in types is a part of EraEndV1.
NodeConfig
Node fast-sync configuration.
StatusFeed
Data feed for client “info_get_status” endpoint.
TrieOrChunkId
Represents the ID of a TrieOrChunk - containing the index and the root hash. The root hash is the hash of the trie node as a whole. The index is the index of a chunk if the node’s size is too large and requires chunking. For small nodes, it’s always 0.
TrieOrChunkIdDisplay
Helper struct to on-demand deserialize a trie or chunk ID for display purposes.
VariantMismatch
The variants in the given types are expected to all be the same.

Enums§

ChunkingError
Error returned when constructing an instance of ValueOrChunk.
ExitCode
Exit codes which should be used by the casper-node binary, and provided by the reactor to the binary.
SyncHandling
Node sync configuration.
ValueOrChunk
Represents a value or a chunk of data with attached proof.

Traits§

Chunkable
Implemented for types that are chunked when sending over the wire and/or before storing the trie store.
CryptoRngCore
An object-safe RNG trait that requires a cryptographically strong random number generator.
DataSize
Indicates that a type knows how to approximate its memory usage.

Type Aliases§

NodeRng
The cryptographically secure RNG used throughout the node.
TrieOrChunk
Represents an enum that can contain either a whole trie or a chunk of it.

Derive Macros§

DataSize
Automatically derive the DataSize trait for a type.