pub trait MessageProtocolVersionBound {
    // Required methods
    fn version_introduced(&self) -> ProtocolVersion;
    fn version_valid_till(&self) -> ProtocolVersion;
}

Required Methods§

source

fn version_introduced(&self) -> ProtocolVersion

This message is introduced since this version.

source

fn version_valid_till(&self) -> ProtocolVersion

This message is valid until the specified version.

The return type is NOT defined as Option intentionally, because I’d like to make it impossible to keep a Message forever by default.

Whenever we bump a protocol version, always update the version_valid_till for each message.

Implementations on Foreign Types§

source§

impl MessageProtocolVersionBound for EpochRetrievalRequest

source§

impl MessageProtocolVersionBound for ProposalMsg

source§

impl MessageProtocolVersionBound for SyncInfo

source§

impl MessageProtocolVersionBound for VoteMsg

source§

impl MessageProtocolVersionBound for EpochChangeProof

Implementors§

source§

impl MessageProtocolVersionBound for MempoolSyncMsg

source§

impl MessageProtocolVersionBound for BlockRetrievalRpcRequest

source§

impl MessageProtocolVersionBound for BlockRetrievalRpcResponse

source§

impl MessageProtocolVersionBound for DynamicCapabilityChange

source§

impl MessageProtocolVersionBound for GetBlockHashesByEpoch

source§

impl MessageProtocolVersionBound for GetBlockHashesResponse

source§

impl MessageProtocolVersionBound for GetBlockHeaders

source§

impl MessageProtocolVersionBound for GetBlockHeadersResponse

source§

impl MessageProtocolVersionBound for GetBlockTxn

source§

impl MessageProtocolVersionBound for GetBlockTxnResponse

source§

impl MessageProtocolVersionBound for GetBlocks

source§

impl MessageProtocolVersionBound for GetBlocksResponse

source§

impl MessageProtocolVersionBound for GetBlocksWithPublicResponse

source§

impl MessageProtocolVersionBound for GetCompactBlocks

source§

impl MessageProtocolVersionBound for GetCompactBlocksResponse

source§

impl MessageProtocolVersionBound for GetTerminalBlockHashes

source§

impl MessageProtocolVersionBound for GetTerminalBlockHashesResponse

source§

impl MessageProtocolVersionBound for GetTransactions

source§

impl MessageProtocolVersionBound for GetTransactionsFromTxHashes

source§

impl MessageProtocolVersionBound for GetTransactionsFromTxHashesResponse

source§

impl MessageProtocolVersionBound for GetTransactionsResponse

source§

impl MessageProtocolVersionBound for Heartbeat

source§

impl MessageProtocolVersionBound for NewBlock

source§

impl MessageProtocolVersionBound for NewBlockHashes

source§

impl MessageProtocolVersionBound for SnapshotChunkRequest

source§

impl MessageProtocolVersionBound for SnapshotChunkResponse

source§

impl MessageProtocolVersionBound for SnapshotManifestRequest

source§

impl MessageProtocolVersionBound for SnapshotManifestResponse

source§

impl MessageProtocolVersionBound for StateSyncCandidateRequest

source§

impl MessageProtocolVersionBound for StateSyncCandidateResponse

source§

impl MessageProtocolVersionBound for StatusV2

source§

impl MessageProtocolVersionBound for StatusV3

source§

impl MessageProtocolVersionBound for Throttled

source§

impl MessageProtocolVersionBound for TransactionDigests

source§

impl MessageProtocolVersionBound for Transactions