Struct kafka_protocol::messages::consumer_group_heartbeat_request::ConsumerGroupHeartbeatRequestBuilder
source · pub struct ConsumerGroupHeartbeatRequestBuilder { /* private fields */ }Expand description
Builder for ConsumerGroupHeartbeatRequest.
Implementations§
source§impl ConsumerGroupHeartbeatRequestBuilder
impl ConsumerGroupHeartbeatRequestBuilder
sourcepub fn group_id(&mut self, value: GroupId) -> &mut Self
pub fn group_id(&mut self, value: GroupId) -> &mut Self
The group identifier.
Supported API versions: 0
sourcepub fn member_id(&mut self, value: StrBytes) -> &mut Self
pub fn member_id(&mut self, value: StrBytes) -> &mut Self
The member id generated by the coordinator. The member id must be kept during the entire lifetime of the member.
Supported API versions: 0
sourcepub fn member_epoch(&mut self, value: i32) -> &mut Self
pub fn member_epoch(&mut self, value: i32) -> &mut Self
The current member epoch; 0 to join the group; -1 to leave the group; -2 to indicate that the static member will rejoin.
Supported API versions: 0
sourcepub fn instance_id(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn instance_id(&mut self, value: Option<StrBytes>) -> &mut Self
null if not provided or if it didn’t change since the last heartbeat; the instance Id otherwise.
Supported API versions: 0
sourcepub fn rack_id(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn rack_id(&mut self, value: Option<StrBytes>) -> &mut Self
null if not provided or if it didn’t change since the last heartbeat; the rack ID of consumer otherwise.
Supported API versions: 0
sourcepub fn rebalance_timeout_ms(&mut self, value: i32) -> &mut Self
pub fn rebalance_timeout_ms(&mut self, value: i32) -> &mut Self
-1 if it didn’t change since the last heartbeat; the maximum time in milliseconds that the coordinator will wait on the member to revoke its partitions otherwise.
Supported API versions: 0
sourcepub fn subscribed_topic_names(
&mut self,
value: Option<Vec<TopicName>>,
) -> &mut Self
pub fn subscribed_topic_names( &mut self, value: Option<Vec<TopicName>>, ) -> &mut Self
null if it didn’t change since the last heartbeat; the subscribed topic names otherwise.
Supported API versions: 0
sourcepub fn server_assignor(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn server_assignor(&mut self, value: Option<StrBytes>) -> &mut Self
null if not used or if it didn’t change since the last heartbeat; the server side assignor to use otherwise.
Supported API versions: 0
sourcepub fn topic_partitions(
&mut self,
value: Option<Vec<TopicPartitions>>,
) -> &mut Self
pub fn topic_partitions( &mut self, value: Option<Vec<TopicPartitions>>, ) -> &mut Self
null if it didn’t change since the last heartbeat; the partitions owned by the member.
Supported API versions: 0
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>,
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes>, ) -> &mut Self
Other tagged fields
sourcepub fn build(
&self,
) -> Result<ConsumerGroupHeartbeatRequest, ConsumerGroupHeartbeatRequestBuilderError>
pub fn build( &self, ) -> Result<ConsumerGroupHeartbeatRequest, ConsumerGroupHeartbeatRequestBuilderError>
Trait Implementations§
source§impl Clone for ConsumerGroupHeartbeatRequestBuilder
impl Clone for ConsumerGroupHeartbeatRequestBuilder
source§fn clone(&self) -> ConsumerGroupHeartbeatRequestBuilder
fn clone(&self) -> ConsumerGroupHeartbeatRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !Freeze for ConsumerGroupHeartbeatRequestBuilder
impl RefUnwindSafe for ConsumerGroupHeartbeatRequestBuilder
impl Send for ConsumerGroupHeartbeatRequestBuilder
impl Sync for ConsumerGroupHeartbeatRequestBuilder
impl Unpin for ConsumerGroupHeartbeatRequestBuilder
impl UnwindSafe for ConsumerGroupHeartbeatRequestBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)