Struct kafka_api::apikey::ApiMessageType
source · pub struct ApiMessageType {
pub api_key: i16,
pub lowest_supported_version: i16,
pub highest_supported_version: i16,
pub latest_version_unstable: bool,
}
Fields§
§api_key: i16
§lowest_supported_version: i16
§highest_supported_version: i16
§latest_version_unstable: bool
Implementations§
source§impl ApiMessageType
impl ApiMessageType
pub const PRODUCE: Self = _
pub const FETCH: Self = _
pub const LIST_OFFSETS: Self = _
pub const METADATA: Self = _
pub const LEADER_AND_ISR: Self = _
pub const STOP_REPLICA: Self = _
pub const UPDATE_METADATA: Self = _
pub const CONTROLLED_SHUTDOWN: Self = _
pub const OFFSET_COMMIT: Self = _
pub const OFFSET_FETCH: Self = _
pub const FIND_COORDINATOR: Self = _
pub const JOIN_GROUP: Self = _
pub const HEARTBEAT: Self = _
pub const LEAVE_GROUP: Self = _
pub const SYNC_GROUP: Self = _
pub const DESCRIBE_GROUPS: Self = _
pub const LIST_GROUPS: Self = _
pub const SASL_HANDSHAKE: Self = _
pub const API_VERSIONS: Self = _
pub const CREATE_TOPICS: Self = _
pub const DELETE_TOPICS: Self = _
pub const DELETE_RECORDS: Self = _
pub const INIT_PRODUCER_ID: Self = _
pub const OFFSET_FOR_LEADER_EPOCH: Self = _
pub const ADD_PARTITIONS_TO_TXN: Self = _
pub const ADD_OFFSETS_TO_TXN: Self = _
pub const END_TXN: Self = _
pub const WRITE_TXN_MARKERS: Self = _
pub const TXN_OFFSET_COMMIT: Self = _
pub const DESCRIBE_ACLS: Self = _
pub const CREATE_ACLS: Self = _
pub const DELETE_ACLS: Self = _
pub const DESCRIBE_CONFIGS: Self = _
pub const ALTER_CONFIGS: Self = _
pub const ALTER_REPLICA_LOG_DIRS: Self = _
pub const DESCRIBE_LOG_DIRS: Self = _
pub const SASL_AUTHENTICATE: Self = _
pub const CREATE_PARTITIONS: Self = _
pub const CREATE_DELEGATION_TOKEN: Self = _
pub const RENEW_DELEGATION_TOKEN: Self = _
pub const EXPIRE_DELEGATION_TOKEN: Self = _
pub const DESCRIBE_DELEGATION_TOKEN: Self = _
pub const DELETE_GROUPS: Self = _
pub const ELECT_LEADERS: Self = _
pub const INCREMENTAL_ALTER_CONFIGS: Self = _
pub const ALTER_PARTITION_REASSIGNMENTS: Self = _
pub const LIST_PARTITION_REASSIGNMENTS: Self = _
pub const OFFSET_DELETE: Self = _
pub const DESCRIBE_CLIENT_QUOTAS: Self = _
pub const ALTER_CLIENT_QUOTAS: Self = _
pub const DESCRIBE_USER_SCRAM_CREDENTIALS: Self = _
pub const ALTER_USER_SCRAM_CREDENTIALS: Self = _
pub const VOTE: Self = _
pub const BEGIN_QUORUM_EPOCH: Self = _
pub const END_QUORUM_EPOCH: Self = _
pub const DESCRIBE_QUORUM: Self = _
pub const ALTER_PARTITION: Self = _
pub const UPDATE_FEATURES: Self = _
pub const ENVELOPE: Self = _
pub const FETCH_SNAPSHOT: Self = _
pub const DESCRIBE_CLUSTER: Self = _
pub const DESCRIBE_PRODUCERS: Self = _
pub const BROKER_REGISTRATION: Self = _
pub const BROKER_HEARTBEAT: Self = _
pub const UNREGISTER_BROKER: Self = _
pub const DESCRIBE_TRANSACTIONS: Self = _
pub const LIST_TRANSACTIONS: Self = _
pub const ALLOCATE_PRODUCER_IDS: Self = _
pub const CONSUMER_GROUP_HEARTBEAT: Self = _
source§impl ApiMessageType
impl ApiMessageType
pub fn request_header_version(&self, api_version: i16) -> i16
pub fn response_header_version(&self, api_version: i16) -> i16
Trait Implementations§
source§impl Clone for ApiMessageType
impl Clone for ApiMessageType
source§fn clone(&self) -> ApiMessageType
fn clone(&self) -> ApiMessageType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApiMessageType
impl Debug for ApiMessageType
source§impl Ord for ApiMessageType
impl Ord for ApiMessageType
source§fn cmp(&self, other: &ApiMessageType) -> Ordering
fn cmp(&self, other: &ApiMessageType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ApiMessageType> for ApiMessageType
impl PartialEq<ApiMessageType> for ApiMessageType
source§fn eq(&self, other: &ApiMessageType) -> bool
fn eq(&self, other: &ApiMessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ApiMessageType> for ApiMessageType
impl PartialOrd<ApiMessageType> for ApiMessageType
source§fn partial_cmp(&self, other: &ApiMessageType) -> Option<Ordering>
fn partial_cmp(&self, other: &ApiMessageType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i16> for ApiMessageType
impl TryFrom<i16> for ApiMessageType
impl Copy for ApiMessageType
impl Eq for ApiMessageType
impl StructuralEq for ApiMessageType
impl StructuralPartialEq for ApiMessageType
Auto Trait Implementations§
impl RefUnwindSafe for ApiMessageType
impl Send for ApiMessageType
impl Sync for ApiMessageType
impl Unpin for ApiMessageType
impl UnwindSafe for ApiMessageType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more