Struct kafka_protocol::messages::controlled_shutdown_response::ControlledShutdownResponseBuilder
source · pub struct ControlledShutdownResponseBuilder { /* private fields */ }
Expand description
Builder for ControlledShutdownResponse
.
Implementations§
source§impl ControlledShutdownResponseBuilder
impl ControlledShutdownResponseBuilder
sourcepub fn error_code(&mut self, value: i16) -> &mut Self
pub fn error_code(&mut self, value: i16) -> &mut Self
The top-level error code.
Supported API versions: 0-3
sourcepub fn remaining_partitions(
&mut self,
value: Vec<RemainingPartition>
) -> &mut Self
pub fn remaining_partitions( &mut self, value: Vec<RemainingPartition> ) -> &mut Self
The partitions that the broker still leads.
Supported API versions: 0-3
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<ControlledShutdownResponse, ControlledShutdownResponseBuilderError>
pub fn build( &self ) -> Result<ControlledShutdownResponse, ControlledShutdownResponseBuilderError>
Trait Implementations§
source§impl Clone for ControlledShutdownResponseBuilder
impl Clone for ControlledShutdownResponseBuilder
source§fn clone(&self) -> ControlledShutdownResponseBuilder
fn clone(&self) -> ControlledShutdownResponseBuilder
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 ControlledShutdownResponseBuilder
impl Send for ControlledShutdownResponseBuilder
impl Sync for ControlledShutdownResponseBuilder
impl Unpin for ControlledShutdownResponseBuilder
impl UnwindSafe for ControlledShutdownResponseBuilder
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