pub struct ApiMessageType { /* private fields */ }
Implementations§
Source§impl ApiMessageType
impl ApiMessageType
pub fn api_key(&self) -> i16
pub fn lowest_supported_version(&self) -> i16
pub fn highest_supported_version(&self) -> i16
pub fn latest_version_unstable(&self) -> bool
Source§impl ApiMessageType
impl ApiMessageType
pub const PRODUCE: Self
pub const FETCH: Self
pub const METADATA: Self
pub const OFFSET_FETCH: Self
pub const FIND_COORDINATOR: Self
pub const JOIN_GROUP: Self
pub const HEARTBEAT: Self
pub const SYNC_GROUP: Self
pub const API_VERSIONS: Self
pub const CREATE_TOPICS: Self
pub const INIT_PRODUCER_ID: 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 Display for ApiMessageType
impl Display 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 for ApiMessageType
impl PartialEq for ApiMessageType
Source§impl PartialOrd for ApiMessageType
impl PartialOrd for ApiMessageType
Source§impl TryFrom<i16> for ApiMessageType
impl TryFrom<i16> for ApiMessageType
impl Copy for ApiMessageType
impl Eq for ApiMessageType
impl StructuralPartialEq for ApiMessageType
Auto Trait Implementations§
impl Freeze for ApiMessageType
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