pub struct BrokerRegistrationRequestData {
pub broker_id: i32,
pub cluster_id: KafkaString,
pub incarnation_id: KafkaUuid,
pub listeners: Vec<Listener>,
pub features: Vec<Feature>,
pub rack: Option<KafkaString>,
pub is_migrating_zk_broker: bool,
pub log_dirs: Vec<KafkaUuid>,
pub previous_broker_epoch: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§broker_id: i32The broker ID.
cluster_id: KafkaStringThe cluster id of the broker process.
incarnation_id: KafkaUuidThe incarnation id of the broker process.
listeners: Vec<Listener>The listeners of this broker.
features: Vec<Feature>The features on this broker. Note: in v0-v3, features with MinSupportedVersion = 0 are omitted.
rack: Option<KafkaString>The rack which this broker is in.
is_migrating_zk_broker: boolIf the required configurations for ZK migration are present, this value is set to true.
log_dirs: Vec<KafkaUuid>Log directories configured in this broker which are available.
previous_broker_epoch: i64The epoch before a clean shutdown.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl BrokerRegistrationRequestData
impl BrokerRegistrationRequestData
pub fn with_broker_id(self, value: i32) -> Self
pub fn with_cluster_id(self, value: KafkaString) -> Self
pub fn with_incarnation_id(self, value: KafkaUuid) -> Self
pub fn with_listeners(self, value: Vec<Listener>) -> Self
pub fn with_features(self, value: Vec<Feature>) -> Self
pub fn with_rack(self, value: Option<KafkaString>) -> Self
pub fn with_is_migrating_zk_broker(self, value: bool) -> Self
pub fn with_log_dirs(self, value: Vec<KafkaUuid>) -> Self
pub fn with_previous_broker_epoch(self, value: i64) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for BrokerRegistrationRequestData
impl Clone for BrokerRegistrationRequestData
Source§fn clone(&self) -> BrokerRegistrationRequestData
fn clone(&self) -> BrokerRegistrationRequestData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for BrokerRegistrationRequestData
impl PartialEq for BrokerRegistrationRequestData
Source§fn eq(&self, other: &BrokerRegistrationRequestData) -> bool
fn eq(&self, other: &BrokerRegistrationRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BrokerRegistrationRequestData
Auto Trait Implementations§
impl !Freeze for BrokerRegistrationRequestData
impl RefUnwindSafe for BrokerRegistrationRequestData
impl Send for BrokerRegistrationRequestData
impl Sync for BrokerRegistrationRequestData
impl Unpin for BrokerRegistrationRequestData
impl UnsafeUnpin for BrokerRegistrationRequestData
impl UnwindSafe for BrokerRegistrationRequestData
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