pub trait IsRequest {
    type Response;

    const PROTOCOL: Protocol;
}
Expand description

Common properties of any Request.

Required Associated Types§

source

type Response

Each request has a corresponding Response.

Required Associated Constants§

source

const PROTOCOL: Protocol

What protocol this Request implements.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl IsRequest for AvailableDataFetchingRequest

§

type Response = AvailableDataFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::AvailableDataFetchingV1

source§

impl IsRequest for polkadot_node_network_protocol::request_response::v1::ChunkFetchingRequest

§

type Response = ChunkFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::ChunkFetchingV1

source§

impl IsRequest for polkadot_node_network_protocol::request_response::v1::CollationFetchingRequest

§

type Response = CollationFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::CollationFetchingV1

source§

impl IsRequest for DisputeRequest

§

type Response = DisputeResponse

source§

const PROTOCOL: Protocol = Protocol::DisputeSendingV1

source§

impl IsRequest for PoVFetchingRequest

§

type Response = PoVFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::PoVFetchingV1

source§

impl IsRequest for StatementFetchingRequest

§

type Response = StatementFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::StatementFetchingV1

source§

impl IsRequest for AttestedCandidateRequest

§

type Response = AttestedCandidateResponse

source§

const PROTOCOL: Protocol = Protocol::AttestedCandidateV2

source§

impl IsRequest for polkadot_node_network_protocol::request_response::v2::ChunkFetchingRequest

§

type Response = ChunkFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::ChunkFetchingV2

source§

impl IsRequest for polkadot_node_network_protocol::request_response::v2::CollationFetchingRequest

§

type Response = CollationFetchingResponse

source§

const PROTOCOL: Protocol = Protocol::CollationFetchingV2