Enum ResponseKind

Source
#[non_exhaustive]
pub enum ResponseKind {
Show 79 variants Produce(ProduceResponse), Fetch(FetchResponse), ListOffsets(ListOffsetsResponse), Metadata(MetadataResponse), LeaderAndIsr(LeaderAndIsrResponse), StopReplica(StopReplicaResponse), UpdateMetadata(UpdateMetadataResponse), ControlledShutdown(ControlledShutdownResponse), OffsetCommit(OffsetCommitResponse), OffsetFetch(OffsetFetchResponse), FindCoordinator(FindCoordinatorResponse), JoinGroup(JoinGroupResponse), Heartbeat(HeartbeatResponse), LeaveGroup(LeaveGroupResponse), SyncGroup(SyncGroupResponse), DescribeGroups(DescribeGroupsResponse), ListGroups(ListGroupsResponse), SaslHandshake(SaslHandshakeResponse), ApiVersions(ApiVersionsResponse), CreateTopics(CreateTopicsResponse), DeleteTopics(DeleteTopicsResponse), DeleteRecords(DeleteRecordsResponse), InitProducerId(InitProducerIdResponse), OffsetForLeaderEpoch(OffsetForLeaderEpochResponse), AddPartitionsToTxn(AddPartitionsToTxnResponse), AddOffsetsToTxn(AddOffsetsToTxnResponse), EndTxn(EndTxnResponse), WriteTxnMarkers(WriteTxnMarkersResponse), TxnOffsetCommit(TxnOffsetCommitResponse), DescribeAcls(DescribeAclsResponse), CreateAcls(CreateAclsResponse), DeleteAcls(DeleteAclsResponse), DescribeConfigs(DescribeConfigsResponse), AlterConfigs(AlterConfigsResponse), AlterReplicaLogDirs(AlterReplicaLogDirsResponse), DescribeLogDirs(DescribeLogDirsResponse), SaslAuthenticate(SaslAuthenticateResponse), CreatePartitions(CreatePartitionsResponse), CreateDelegationToken(CreateDelegationTokenResponse), RenewDelegationToken(RenewDelegationTokenResponse), ExpireDelegationToken(ExpireDelegationTokenResponse), DescribeDelegationToken(DescribeDelegationTokenResponse), DeleteGroups(DeleteGroupsResponse), ElectLeaders(ElectLeadersResponse), IncrementalAlterConfigs(IncrementalAlterConfigsResponse), AlterPartitionReassignments(AlterPartitionReassignmentsResponse), ListPartitionReassignments(ListPartitionReassignmentsResponse), OffsetDelete(OffsetDeleteResponse), DescribeClientQuotas(DescribeClientQuotasResponse), AlterClientQuotas(AlterClientQuotasResponse), DescribeUserScramCredentials(DescribeUserScramCredentialsResponse), AlterUserScramCredentials(AlterUserScramCredentialsResponse), Vote(VoteResponse), BeginQuorumEpoch(BeginQuorumEpochResponse), EndQuorumEpoch(EndQuorumEpochResponse), DescribeQuorum(DescribeQuorumResponse), AlterPartition(AlterPartitionResponse), UpdateFeatures(UpdateFeaturesResponse), Envelope(EnvelopeResponse), FetchSnapshot(FetchSnapshotResponse), DescribeCluster(DescribeClusterResponse), DescribeProducers(DescribeProducersResponse), BrokerRegistration(BrokerRegistrationResponse), BrokerHeartbeat(BrokerHeartbeatResponse), UnregisterBroker(UnregisterBrokerResponse), DescribeTransactions(DescribeTransactionsResponse), ListTransactions(ListTransactionsResponse), AllocateProducerIds(AllocateProducerIdsResponse), ConsumerGroupHeartbeat(ConsumerGroupHeartbeatResponse), ConsumerGroupDescribe(ConsumerGroupDescribeResponse), ControllerRegistration(ControllerRegistrationResponse), GetTelemetrySubscriptions(GetTelemetrySubscriptionsResponse), PushTelemetry(PushTelemetryResponse), AssignReplicasToDirs(AssignReplicasToDirsResponse), ListClientMetricsResources(ListClientMetricsResourcesResponse), DescribeTopicPartitions(DescribeTopicPartitionsResponse), AddRaftVoter(AddRaftVoterResponse), RemoveRaftVoter(RemoveRaftVoterResponse), UpdateRaftVoter(UpdateRaftVoterResponse),
}
Available on crate feature messages_enums only.
Expand description

Wrapping enum for all responses in the Kafka protocol.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Produce(ProduceResponse)

ProduceResponse,

§

Fetch(FetchResponse)

FetchResponse,

§

ListOffsets(ListOffsetsResponse)

ListOffsetsResponse,

§

Metadata(MetadataResponse)

MetadataResponse,

§

LeaderAndIsr(LeaderAndIsrResponse)

LeaderAndIsrResponse,

§

StopReplica(StopReplicaResponse)

StopReplicaResponse,

§

UpdateMetadata(UpdateMetadataResponse)

UpdateMetadataResponse,

§

ControlledShutdown(ControlledShutdownResponse)

ControlledShutdownResponse,

§

OffsetCommit(OffsetCommitResponse)

OffsetCommitResponse,

§

OffsetFetch(OffsetFetchResponse)

OffsetFetchResponse,

§

FindCoordinator(FindCoordinatorResponse)

FindCoordinatorResponse,

§

JoinGroup(JoinGroupResponse)

JoinGroupResponse,

§

Heartbeat(HeartbeatResponse)

HeartbeatResponse,

§

LeaveGroup(LeaveGroupResponse)

LeaveGroupResponse,

§

SyncGroup(SyncGroupResponse)

SyncGroupResponse,

§

DescribeGroups(DescribeGroupsResponse)

DescribeGroupsResponse,

§

ListGroups(ListGroupsResponse)

ListGroupsResponse,

§

SaslHandshake(SaslHandshakeResponse)

SaslHandshakeResponse,

§

ApiVersions(ApiVersionsResponse)

ApiVersionsResponse,

§

CreateTopics(CreateTopicsResponse)

CreateTopicsResponse,

§

DeleteTopics(DeleteTopicsResponse)

DeleteTopicsResponse,

§

DeleteRecords(DeleteRecordsResponse)

DeleteRecordsResponse,

§

InitProducerId(InitProducerIdResponse)

InitProducerIdResponse,

§

OffsetForLeaderEpoch(OffsetForLeaderEpochResponse)

OffsetForLeaderEpochResponse,

§

AddPartitionsToTxn(AddPartitionsToTxnResponse)

AddPartitionsToTxnResponse,

§

AddOffsetsToTxn(AddOffsetsToTxnResponse)

AddOffsetsToTxnResponse,

§

EndTxn(EndTxnResponse)

EndTxnResponse,

§

WriteTxnMarkers(WriteTxnMarkersResponse)

WriteTxnMarkersResponse,

§

TxnOffsetCommit(TxnOffsetCommitResponse)

TxnOffsetCommitResponse,

§

DescribeAcls(DescribeAclsResponse)

DescribeAclsResponse,

§

CreateAcls(CreateAclsResponse)

CreateAclsResponse,

§

DeleteAcls(DeleteAclsResponse)

DeleteAclsResponse,

§

DescribeConfigs(DescribeConfigsResponse)

DescribeConfigsResponse,

§

AlterConfigs(AlterConfigsResponse)

AlterConfigsResponse,

§

AlterReplicaLogDirs(AlterReplicaLogDirsResponse)

AlterReplicaLogDirsResponse,

§

DescribeLogDirs(DescribeLogDirsResponse)

DescribeLogDirsResponse,

§

SaslAuthenticate(SaslAuthenticateResponse)

SaslAuthenticateResponse,

§

CreatePartitions(CreatePartitionsResponse)

CreatePartitionsResponse,

§

CreateDelegationToken(CreateDelegationTokenResponse)

CreateDelegationTokenResponse,

§

RenewDelegationToken(RenewDelegationTokenResponse)

RenewDelegationTokenResponse,

§

ExpireDelegationToken(ExpireDelegationTokenResponse)

ExpireDelegationTokenResponse,

§

DescribeDelegationToken(DescribeDelegationTokenResponse)

DescribeDelegationTokenResponse,

§

DeleteGroups(DeleteGroupsResponse)

DeleteGroupsResponse,

§

ElectLeaders(ElectLeadersResponse)

ElectLeadersResponse,

§

IncrementalAlterConfigs(IncrementalAlterConfigsResponse)

IncrementalAlterConfigsResponse,

§

AlterPartitionReassignments(AlterPartitionReassignmentsResponse)

AlterPartitionReassignmentsResponse,

§

ListPartitionReassignments(ListPartitionReassignmentsResponse)

ListPartitionReassignmentsResponse,

§

OffsetDelete(OffsetDeleteResponse)

OffsetDeleteResponse,

§

DescribeClientQuotas(DescribeClientQuotasResponse)

DescribeClientQuotasResponse,

§

AlterClientQuotas(AlterClientQuotasResponse)

AlterClientQuotasResponse,

§

DescribeUserScramCredentials(DescribeUserScramCredentialsResponse)

DescribeUserScramCredentialsResponse,

§

AlterUserScramCredentials(AlterUserScramCredentialsResponse)

AlterUserScramCredentialsResponse,

§

Vote(VoteResponse)

VoteResponse,

§

BeginQuorumEpoch(BeginQuorumEpochResponse)

BeginQuorumEpochResponse,

§

EndQuorumEpoch(EndQuorumEpochResponse)

EndQuorumEpochResponse,

§

DescribeQuorum(DescribeQuorumResponse)

DescribeQuorumResponse,

§

AlterPartition(AlterPartitionResponse)

AlterPartitionResponse,

§

UpdateFeatures(UpdateFeaturesResponse)

UpdateFeaturesResponse,

§

Envelope(EnvelopeResponse)

EnvelopeResponse,

§

FetchSnapshot(FetchSnapshotResponse)

FetchSnapshotResponse,

§

DescribeCluster(DescribeClusterResponse)

DescribeClusterResponse,

§

DescribeProducers(DescribeProducersResponse)

DescribeProducersResponse,

§

BrokerRegistration(BrokerRegistrationResponse)

BrokerRegistrationResponse,

§

BrokerHeartbeat(BrokerHeartbeatResponse)

BrokerHeartbeatResponse,

§

UnregisterBroker(UnregisterBrokerResponse)

UnregisterBrokerResponse,

§

DescribeTransactions(DescribeTransactionsResponse)

DescribeTransactionsResponse,

§

ListTransactions(ListTransactionsResponse)

ListTransactionsResponse,

§

AllocateProducerIds(AllocateProducerIdsResponse)

AllocateProducerIdsResponse,

§

ConsumerGroupHeartbeat(ConsumerGroupHeartbeatResponse)

ConsumerGroupHeartbeatResponse,

§

ConsumerGroupDescribe(ConsumerGroupDescribeResponse)

ConsumerGroupDescribeResponse,

§

ControllerRegistration(ControllerRegistrationResponse)

ControllerRegistrationResponse,

§

GetTelemetrySubscriptions(GetTelemetrySubscriptionsResponse)

GetTelemetrySubscriptionsResponse,

§

PushTelemetry(PushTelemetryResponse)

PushTelemetryResponse,

§

AssignReplicasToDirs(AssignReplicasToDirsResponse)

AssignReplicasToDirsResponse,

§

ListClientMetricsResources(ListClientMetricsResourcesResponse)

ListClientMetricsResourcesResponse,

§

DescribeTopicPartitions(DescribeTopicPartitionsResponse)

DescribeTopicPartitionsResponse,

§

AddRaftVoter(AddRaftVoterResponse)

AddRaftVoterResponse,

§

RemoveRaftVoter(RemoveRaftVoterResponse)

RemoveRaftVoterResponse,

§

UpdateRaftVoter(UpdateRaftVoterResponse)

UpdateRaftVoterResponse,

Implementations§

Source§

impl ResponseKind

Source

pub fn encode(&self, bytes: &mut BytesMut, version: i16) -> Result<()>

Available on crate feature broker only.

Encode the message into the target buffer

Source

pub fn decode( api_key: ApiKey, bytes: &mut Bytes, version: i16, ) -> Result<ResponseKind>

Available on crate feature client only.

Decode the message from the provided buffer and version

Source

pub fn header_version(&self, version: i16) -> i16

Get the version of request header that needs to be prepended to this message

Trait Implementations§

Source§

impl Clone for ResponseKind

Source§

fn clone(&self) -> ResponseKind

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResponseKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AddOffsetsToTxnResponse> for ResponseKind

Source§

fn from(value: AddOffsetsToTxnResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AddPartitionsToTxnResponse> for ResponseKind

Source§

fn from(value: AddPartitionsToTxnResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AddRaftVoterResponse> for ResponseKind

Source§

fn from(value: AddRaftVoterResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AllocateProducerIdsResponse> for ResponseKind

Source§

fn from(value: AllocateProducerIdsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AlterClientQuotasResponse> for ResponseKind

Source§

fn from(value: AlterClientQuotasResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AlterConfigsResponse> for ResponseKind

Source§

fn from(value: AlterConfigsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AlterPartitionReassignmentsResponse> for ResponseKind

Source§

fn from(value: AlterPartitionReassignmentsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AlterPartitionResponse> for ResponseKind

Source§

fn from(value: AlterPartitionResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AlterReplicaLogDirsResponse> for ResponseKind

Source§

fn from(value: AlterReplicaLogDirsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AlterUserScramCredentialsResponse> for ResponseKind

Source§

fn from(value: AlterUserScramCredentialsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ApiVersionsResponse> for ResponseKind

Source§

fn from(value: ApiVersionsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<AssignReplicasToDirsResponse> for ResponseKind

Source§

fn from(value: AssignReplicasToDirsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<BeginQuorumEpochResponse> for ResponseKind

Source§

fn from(value: BeginQuorumEpochResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<BrokerHeartbeatResponse> for ResponseKind

Source§

fn from(value: BrokerHeartbeatResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<BrokerRegistrationResponse> for ResponseKind

Source§

fn from(value: BrokerRegistrationResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ConsumerGroupDescribeResponse> for ResponseKind

Source§

fn from(value: ConsumerGroupDescribeResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ConsumerGroupHeartbeatResponse> for ResponseKind

Source§

fn from(value: ConsumerGroupHeartbeatResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ControlledShutdownResponse> for ResponseKind

Source§

fn from(value: ControlledShutdownResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ControllerRegistrationResponse> for ResponseKind

Source§

fn from(value: ControllerRegistrationResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<CreateAclsResponse> for ResponseKind

Source§

fn from(value: CreateAclsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<CreateDelegationTokenResponse> for ResponseKind

Source§

fn from(value: CreateDelegationTokenResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<CreatePartitionsResponse> for ResponseKind

Source§

fn from(value: CreatePartitionsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<CreateTopicsResponse> for ResponseKind

Source§

fn from(value: CreateTopicsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DeleteAclsResponse> for ResponseKind

Source§

fn from(value: DeleteAclsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DeleteGroupsResponse> for ResponseKind

Source§

fn from(value: DeleteGroupsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DeleteRecordsResponse> for ResponseKind

Source§

fn from(value: DeleteRecordsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DeleteTopicsResponse> for ResponseKind

Source§

fn from(value: DeleteTopicsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeAclsResponse> for ResponseKind

Source§

fn from(value: DescribeAclsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeClientQuotasResponse> for ResponseKind

Source§

fn from(value: DescribeClientQuotasResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeClusterResponse> for ResponseKind

Source§

fn from(value: DescribeClusterResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeConfigsResponse> for ResponseKind

Source§

fn from(value: DescribeConfigsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeDelegationTokenResponse> for ResponseKind

Source§

fn from(value: DescribeDelegationTokenResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeGroupsResponse> for ResponseKind

Source§

fn from(value: DescribeGroupsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeLogDirsResponse> for ResponseKind

Source§

fn from(value: DescribeLogDirsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeProducersResponse> for ResponseKind

Source§

fn from(value: DescribeProducersResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeQuorumResponse> for ResponseKind

Source§

fn from(value: DescribeQuorumResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeTopicPartitionsResponse> for ResponseKind

Source§

fn from(value: DescribeTopicPartitionsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeTransactionsResponse> for ResponseKind

Source§

fn from(value: DescribeTransactionsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<DescribeUserScramCredentialsResponse> for ResponseKind

Source§

fn from(value: DescribeUserScramCredentialsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ElectLeadersResponse> for ResponseKind

Source§

fn from(value: ElectLeadersResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<EndQuorumEpochResponse> for ResponseKind

Source§

fn from(value: EndQuorumEpochResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<EndTxnResponse> for ResponseKind

Source§

fn from(value: EndTxnResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<EnvelopeResponse> for ResponseKind

Source§

fn from(value: EnvelopeResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ExpireDelegationTokenResponse> for ResponseKind

Source§

fn from(value: ExpireDelegationTokenResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<FetchResponse> for ResponseKind

Source§

fn from(value: FetchResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<FetchSnapshotResponse> for ResponseKind

Source§

fn from(value: FetchSnapshotResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<FindCoordinatorResponse> for ResponseKind

Source§

fn from(value: FindCoordinatorResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<GetTelemetrySubscriptionsResponse> for ResponseKind

Source§

fn from(value: GetTelemetrySubscriptionsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<HeartbeatResponse> for ResponseKind

Source§

fn from(value: HeartbeatResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<IncrementalAlterConfigsResponse> for ResponseKind

Source§

fn from(value: IncrementalAlterConfigsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<InitProducerIdResponse> for ResponseKind

Source§

fn from(value: InitProducerIdResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<JoinGroupResponse> for ResponseKind

Source§

fn from(value: JoinGroupResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<LeaderAndIsrResponse> for ResponseKind

Source§

fn from(value: LeaderAndIsrResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<LeaveGroupResponse> for ResponseKind

Source§

fn from(value: LeaveGroupResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ListClientMetricsResourcesResponse> for ResponseKind

Source§

fn from(value: ListClientMetricsResourcesResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ListGroupsResponse> for ResponseKind

Source§

fn from(value: ListGroupsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ListOffsetsResponse> for ResponseKind

Source§

fn from(value: ListOffsetsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ListPartitionReassignmentsResponse> for ResponseKind

Source§

fn from(value: ListPartitionReassignmentsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ListTransactionsResponse> for ResponseKind

Source§

fn from(value: ListTransactionsResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<MetadataResponse> for ResponseKind

Source§

fn from(value: MetadataResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<OffsetCommitResponse> for ResponseKind

Source§

fn from(value: OffsetCommitResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<OffsetDeleteResponse> for ResponseKind

Source§

fn from(value: OffsetDeleteResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<OffsetFetchResponse> for ResponseKind

Source§

fn from(value: OffsetFetchResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<OffsetForLeaderEpochResponse> for ResponseKind

Source§

fn from(value: OffsetForLeaderEpochResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<ProduceResponse> for ResponseKind

Source§

fn from(value: ProduceResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<PushTelemetryResponse> for ResponseKind

Source§

fn from(value: PushTelemetryResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<RemoveRaftVoterResponse> for ResponseKind

Source§

fn from(value: RemoveRaftVoterResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<RenewDelegationTokenResponse> for ResponseKind

Source§

fn from(value: RenewDelegationTokenResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<SaslAuthenticateResponse> for ResponseKind

Source§

fn from(value: SaslAuthenticateResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<SaslHandshakeResponse> for ResponseKind

Source§

fn from(value: SaslHandshakeResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<StopReplicaResponse> for ResponseKind

Source§

fn from(value: StopReplicaResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<SyncGroupResponse> for ResponseKind

Source§

fn from(value: SyncGroupResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<TxnOffsetCommitResponse> for ResponseKind

Source§

fn from(value: TxnOffsetCommitResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<UnregisterBrokerResponse> for ResponseKind

Source§

fn from(value: UnregisterBrokerResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<UpdateFeaturesResponse> for ResponseKind

Source§

fn from(value: UpdateFeaturesResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<UpdateMetadataResponse> for ResponseKind

Source§

fn from(value: UpdateMetadataResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<UpdateRaftVoterResponse> for ResponseKind

Source§

fn from(value: UpdateRaftVoterResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<VoteResponse> for ResponseKind

Source§

fn from(value: VoteResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl From<WriteTxnMarkersResponse> for ResponseKind

Source§

fn from(value: WriteTxnMarkersResponse) -> ResponseKind

Converts to this type from the input type.
Source§

impl PartialEq for ResponseKind

Source§

fn eq(&self, other: &ResponseKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ResponseKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.