#[non_exhaustive]pub struct BrokerHeartbeatRequest {
pub broker_id: BrokerId,
pub broker_epoch: i64,
pub current_metadata_offset: i64,
pub want_fence: bool,
pub want_shut_down: bool,
pub offline_log_dirs: Vec<Uuid>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-1
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.broker_id: BrokerId
The broker ID.
Supported API versions: 0-1
broker_epoch: i64
The broker epoch.
Supported API versions: 0-1
current_metadata_offset: i64
The highest metadata offset which the broker has reached.
Supported API versions: 0-1
want_fence: bool
True if the broker wants to be fenced, false otherwise.
Supported API versions: 0-1
want_shut_down: bool
True if the broker wants to be shut down, false otherwise.
Supported API versions: 0-1
offline_log_dirs: Vec<Uuid>
Log directories that failed and went offline.
Supported API versions: 1
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl BrokerHeartbeatRequest
impl BrokerHeartbeatRequest
Sourcepub fn with_broker_id(self, value: BrokerId) -> Self
pub fn with_broker_id(self, value: BrokerId) -> Self
Sets broker_id
to the passed value.
The broker ID.
Supported API versions: 0-1
Sourcepub fn with_broker_epoch(self, value: i64) -> Self
pub fn with_broker_epoch(self, value: i64) -> Self
Sets broker_epoch
to the passed value.
The broker epoch.
Supported API versions: 0-1
Sourcepub fn with_current_metadata_offset(self, value: i64) -> Self
pub fn with_current_metadata_offset(self, value: i64) -> Self
Sets current_metadata_offset
to the passed value.
The highest metadata offset which the broker has reached.
Supported API versions: 0-1
Sourcepub fn with_want_fence(self, value: bool) -> Self
pub fn with_want_fence(self, value: bool) -> Self
Sets want_fence
to the passed value.
True if the broker wants to be fenced, false otherwise.
Supported API versions: 0-1
Sourcepub fn with_want_shut_down(self, value: bool) -> Self
pub fn with_want_shut_down(self, value: bool) -> Self
Sets want_shut_down
to the passed value.
True if the broker wants to be shut down, false otherwise.
Supported API versions: 0-1
Sourcepub fn with_offline_log_dirs(self, value: Vec<Uuid>) -> Self
pub fn with_offline_log_dirs(self, value: Vec<Uuid>) -> Self
Sets offline_log_dirs
to the passed value.
Log directories that failed and went offline.
Supported API versions: 1
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for BrokerHeartbeatRequest
impl Clone for BrokerHeartbeatRequest
Source§fn clone(&self) -> BrokerHeartbeatRequest
fn clone(&self) -> BrokerHeartbeatRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BrokerHeartbeatRequest
impl Debug for BrokerHeartbeatRequest
Source§impl Decodable for BrokerHeartbeatRequest
Available on crate feature broker
only.
impl Decodable for BrokerHeartbeatRequest
broker
only.Source§impl Default for BrokerHeartbeatRequest
impl Default for BrokerHeartbeatRequest
Source§impl Encodable for BrokerHeartbeatRequest
Available on crate feature client
only.
impl Encodable for BrokerHeartbeatRequest
client
only.Source§impl From<BrokerHeartbeatRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<BrokerHeartbeatRequest> for RequestKind
messages_enums
only.Source§fn from(value: BrokerHeartbeatRequest) -> RequestKind
fn from(value: BrokerHeartbeatRequest) -> RequestKind
Source§impl HeaderVersion for BrokerHeartbeatRequest
impl HeaderVersion for BrokerHeartbeatRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for BrokerHeartbeatRequest
impl Message for BrokerHeartbeatRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for BrokerHeartbeatRequest
impl PartialEq for BrokerHeartbeatRequest
Source§impl Request for BrokerHeartbeatRequest
Available on crate features client
and broker
only.
impl Request for BrokerHeartbeatRequest
client
and broker
only.