#[repr(i32)]pub enum ProtocolVersion {
Show 20 variants
V0 = 0,
V1 = 1,
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5,
V6 = 6,
V7 = 7,
V8 = 8,
V9 = 9,
V10 = 10,
V11 = 11,
V12 = 12,
V13 = 13,
V14 = 14,
V15 = 15,
V16 = 16,
V17 = 17,
V18 = 18,
V19 = 19,
}Expand description
Each protocol version identify new features that are incrementally added to the protocol
Variants§
V0 = 0
Initial versioning
V1 = 1
Added application keep-alive
V2 = 2
Added RedeliverUnacknowledgedMessages Command
V3 = 3
Added compression with LZ4 and ZLib
V4 = 4
Added batch message support
V5 = 5
Added disconnect client w/o closing connection
V6 = 6
Added checksum computation for metadata + payload
V7 = 7
Added CommandLookupTopic - Binary Lookup
V8 = 8
Added CommandConsumerStats - Client fetches broker side consumer stats
V9 = 9
Added end of topic notification
V10 = 10
Added proxy to broker
V11 = 11
C++ consumers before this version are not correctly handling the checksum field
V12 = 12
Added get topic’s last messageId from broker
V13 = 13
Added CommandActiveConsumerChange Added CommandGetTopicsOfNamespace
Schema-registry : added avro schema format for json
V14 = 14
Add CommandAuthChallenge and CommandAuthResponse for mutual auth
V15 = 15
Added Key_Shared subscription
Add CommandGetOrCreateSchema and CommandGetOrCreateSchemaResponse
V16 = 16
Add support for broker entry metadata
V17 = 17
Added support ack receipt
V18 = 18
Add client support for broker entry metadata
V19 = 19
Add CommandTcClientConnectRequest and CommandTcClientConnectResponse
Implementations§
Source§impl ProtocolVersion
impl ProtocolVersion
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
Source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtocolVersion
impl Debug for ProtocolVersion
Source§impl Default for ProtocolVersion
impl Default for ProtocolVersion
Source§fn default() -> ProtocolVersion
fn default() -> ProtocolVersion
Source§impl From<ProtocolVersion> for i32
impl From<ProtocolVersion> for i32
Source§fn from(value: ProtocolVersion) -> i32
fn from(value: ProtocolVersion) -> i32
Source§impl Hash for ProtocolVersion
impl Hash for ProtocolVersion
Source§impl Ord for ProtocolVersion
impl Ord for ProtocolVersion
Source§fn cmp(&self, other: &ProtocolVersion) -> Ordering
fn cmp(&self, other: &ProtocolVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ProtocolVersion
impl PartialEq for ProtocolVersion
Source§fn eq(&self, other: &ProtocolVersion) -> bool
fn eq(&self, other: &ProtocolVersion) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ProtocolVersion
impl PartialOrd for ProtocolVersion
Source§impl TryFrom<i32> for ProtocolVersion
impl TryFrom<i32> for ProtocolVersion
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ProtocolVersion, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtocolVersion, UnknownEnumValue>
impl Copy for ProtocolVersion
impl Eq for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnsafeUnpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more