pub struct BrokerHeartbeatResponseBuilder { /* private fields */ }
Expand description
Builder for BrokerHeartbeatResponse
.
Implementations§
source§impl BrokerHeartbeatResponseBuilder
impl BrokerHeartbeatResponseBuilder
sourcepub fn throttle_time_ms(&mut self, value: i32) -> &mut Self
pub fn throttle_time_ms(&mut self, value: i32) -> &mut Self
Duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 0
sourcepub fn error_code(&mut self, value: i16) -> &mut Self
pub fn error_code(&mut self, value: i16) -> &mut Self
The error code, or 0 if there was no error.
Supported API versions: 0
sourcepub fn is_caught_up(&mut self, value: bool) -> &mut Self
pub fn is_caught_up(&mut self, value: bool) -> &mut Self
True if the broker has approximately caught up with the latest metadata.
Supported API versions: 0
sourcepub fn is_fenced(&mut self, value: bool) -> &mut Self
pub fn is_fenced(&mut self, value: bool) -> &mut Self
True if the broker is fenced.
Supported API versions: 0
sourcepub fn should_shut_down(&mut self, value: bool) -> &mut Self
pub fn should_shut_down(&mut self, value: bool) -> &mut Self
True if the broker should proceed with its shutdown.
Supported API versions: 0
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Vec<u8>> ) -> &mut Self
Other tagged fields
sourcepub fn build(
&self
) -> Result<BrokerHeartbeatResponse, BrokerHeartbeatResponseBuilderError>
pub fn build( &self ) -> Result<BrokerHeartbeatResponse, BrokerHeartbeatResponseBuilderError>
Trait Implementations§
source§impl Clone for BrokerHeartbeatResponseBuilder
impl Clone for BrokerHeartbeatResponseBuilder
source§fn clone(&self) -> BrokerHeartbeatResponseBuilder
fn clone(&self) -> BrokerHeartbeatResponseBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for BrokerHeartbeatResponseBuilder
impl Send for BrokerHeartbeatResponseBuilder
impl Sync for BrokerHeartbeatResponseBuilder
impl Unpin for BrokerHeartbeatResponseBuilder
impl UnwindSafe for BrokerHeartbeatResponseBuilder
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