Trait Request

Source
pub trait Request:
    Message
    + Encodable
    + Decodable
    + HeaderVersion {
    type Response: Message + Encodable + Decodable + HeaderVersion;

    const KEY: i16;
}
Expand description

An API request.

Every abstract request must be able to provide the following items:

  • An API key mapped to this request.
  • A version based on a provided header version.

Required Associated Constants§

Source

const KEY: i16

The API key of this request.

Required Associated Types§

Source

type Response: Message + Encodable + Decodable + HeaderVersion

The response associated with this request.

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 Request for AddOffsetsToTxnRequest

Available on crate features client and broker only.
Source§

impl Request for AddPartitionsToTxnRequest

Available on crate features client and broker only.
Source§

impl Request for AddRaftVoterRequest

Available on crate features client and broker only.
Source§

impl Request for AllocateProducerIdsRequest

Available on crate features client and broker only.
Source§

impl Request for AlterClientQuotasRequest

Available on crate features client and broker only.
Source§

impl Request for AlterConfigsRequest

Available on crate features client and broker only.
Source§

impl Request for AlterPartitionReassignmentsRequest

Available on crate features client and broker only.
Source§

impl Request for AlterPartitionRequest

Available on crate features client and broker only.
Source§

impl Request for AlterReplicaLogDirsRequest

Available on crate features client and broker only.
Source§

impl Request for AlterUserScramCredentialsRequest

Available on crate features client and broker only.
Source§

impl Request for ApiVersionsRequest

Available on crate features client and broker only.
Source§

impl Request for AssignReplicasToDirsRequest

Available on crate features client and broker only.
Source§

impl Request for BeginQuorumEpochRequest

Available on crate features client and broker only.
Source§

impl Request for BrokerHeartbeatRequest

Available on crate features client and broker only.
Source§

impl Request for BrokerRegistrationRequest

Available on crate features client and broker only.
Source§

impl Request for ConsumerGroupDescribeRequest

Available on crate features client and broker only.
Source§

impl Request for ConsumerGroupHeartbeatRequest

Available on crate features client and broker only.
Source§

impl Request for ControlledShutdownRequest

Available on crate features client and broker only.
Source§

impl Request for ControllerRegistrationRequest

Available on crate features client and broker only.
Source§

impl Request for CreateAclsRequest

Available on crate features client and broker only.
Source§

impl Request for CreateDelegationTokenRequest

Available on crate features client and broker only.
Source§

impl Request for CreatePartitionsRequest

Available on crate features client and broker only.
Source§

impl Request for CreateTopicsRequest

Available on crate features client and broker only.
Source§

impl Request for DeleteAclsRequest

Available on crate features client and broker only.
Source§

impl Request for DeleteGroupsRequest

Available on crate features client and broker only.
Source§

impl Request for DeleteRecordsRequest

Available on crate features client and broker only.
Source§

impl Request for DeleteTopicsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeAclsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeClientQuotasRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeClusterRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeConfigsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeDelegationTokenRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeGroupsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeLogDirsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeProducersRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeQuorumRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeTopicPartitionsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeTransactionsRequest

Available on crate features client and broker only.
Source§

impl Request for DescribeUserScramCredentialsRequest

Available on crate features client and broker only.
Source§

impl Request for ElectLeadersRequest

Available on crate features client and broker only.
Source§

impl Request for EndQuorumEpochRequest

Available on crate features client and broker only.
Source§

impl Request for EndTxnRequest

Available on crate features client and broker only.
Source§

impl Request for EnvelopeRequest

Available on crate features client and broker only.
Source§

impl Request for ExpireDelegationTokenRequest

Available on crate features client and broker only.
Source§

impl Request for FetchRequest

Available on crate features client and broker only.
Source§

impl Request for FetchSnapshotRequest

Available on crate features client and broker only.
Source§

impl Request for FindCoordinatorRequest

Available on crate features client and broker only.
Source§

impl Request for GetTelemetrySubscriptionsRequest

Available on crate features client and broker only.
Source§

impl Request for HeartbeatRequest

Available on crate features client and broker only.
Source§

impl Request for IncrementalAlterConfigsRequest

Available on crate features client and broker only.
Source§

impl Request for InitProducerIdRequest

Available on crate features client and broker only.
Source§

impl Request for JoinGroupRequest

Available on crate features client and broker only.
Source§

impl Request for LeaderAndIsrRequest

Available on crate features client and broker only.
Source§

impl Request for LeaveGroupRequest

Available on crate features client and broker only.
Source§

impl Request for ListClientMetricsResourcesRequest

Available on crate features client and broker only.
Source§

impl Request for ListGroupsRequest

Available on crate features client and broker only.
Source§

impl Request for ListOffsetsRequest

Available on crate features client and broker only.
Source§

impl Request for ListPartitionReassignmentsRequest

Available on crate features client and broker only.
Source§

impl Request for ListTransactionsRequest

Available on crate features client and broker only.
Source§

impl Request for MetadataRequest

Available on crate features client and broker only.
Source§

impl Request for OffsetCommitRequest

Available on crate features client and broker only.
Source§

impl Request for OffsetDeleteRequest

Available on crate features client and broker only.
Source§

impl Request for OffsetFetchRequest

Available on crate features client and broker only.
Source§

impl Request for OffsetForLeaderEpochRequest

Available on crate features client and broker only.
Source§

impl Request for ProduceRequest

Available on crate features client and broker only.
Source§

impl Request for PushTelemetryRequest

Available on crate features client and broker only.
Source§

impl Request for RemoveRaftVoterRequest

Available on crate features client and broker only.
Source§

impl Request for RenewDelegationTokenRequest

Available on crate features client and broker only.
Source§

impl Request for SaslAuthenticateRequest

Available on crate features client and broker only.
Source§

impl Request for SaslHandshakeRequest

Available on crate features client and broker only.
Source§

impl Request for StopReplicaRequest

Available on crate features client and broker only.
Source§

impl Request for SyncGroupRequest

Available on crate features client and broker only.
Source§

impl Request for TxnOffsetCommitRequest

Available on crate features client and broker only.
Source§

impl Request for UnregisterBrokerRequest

Available on crate features client and broker only.
Source§

impl Request for UpdateFeaturesRequest

Available on crate features client and broker only.
Source§

impl Request for UpdateMetadataRequest

Available on crate features client and broker only.
Source§

impl Request for UpdateRaftVoterRequest

Available on crate features client and broker only.
Source§

impl Request for VoteRequest

Available on crate features client and broker only.
Source§

impl Request for WriteTxnMarkersRequest

Available on crate features client and broker only.