referrerpolicy=no-referrer-when-downgrade
pub trait IsRequest {
    type Response;

    const PROTOCOL: Protocol;
}
Expand description

Common properties of any Request.

Required Associated Constants§

Source

const PROTOCOL: Protocol

What protocol this Request implements.

Required Associated Types§

Source

type Response

Each request has a corresponding Response.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl IsRequest for AvailableDataFetchingRequest

Source§

const PROTOCOL: Protocol = Protocol::AvailableDataFetchingV1

Source§

type Response = AvailableDataFetchingResponse

Source§

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

Source§

const PROTOCOL: Protocol = Protocol::ChunkFetchingV1

Source§

type Response = ChunkFetchingResponse

Source§

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

Source§

const PROTOCOL: Protocol = Protocol::CollationFetchingV1

Source§

type Response = CollationFetchingResponse

Source§

impl IsRequest for DisputeRequest

Source§

const PROTOCOL: Protocol = Protocol::DisputeSendingV1

Source§

type Response = DisputeResponse

Source§

impl IsRequest for PoVFetchingRequest

Source§

const PROTOCOL: Protocol = Protocol::PoVFetchingV1

Source§

type Response = PoVFetchingResponse

Source§

impl IsRequest for StatementFetchingRequest

Source§

const PROTOCOL: Protocol = Protocol::StatementFetchingV1

Source§

type Response = StatementFetchingResponse

Source§

impl IsRequest for AttestedCandidateRequest

Source§

const PROTOCOL: Protocol = Protocol::AttestedCandidateV2

Source§

type Response = AttestedCandidateResponse

Source§

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

Source§

const PROTOCOL: Protocol = Protocol::ChunkFetchingV2

Source§

type Response = ChunkFetchingResponse

Source§

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

Source§

const PROTOCOL: Protocol = Protocol::CollationFetchingV2

Source§

type Response = CollationFetchingResponse