pub struct PartitionResponse {
pub partition_index: i32,
pub error_code: i16,
pub error_message: Option<KafkaString>,
pub active_producers: Vec<ProducerState>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The partition index.
error_code: i16The partition error code, or 0 if there was no error.
error_message: Option<KafkaString>The partition error message, which may be null if no additional details are available.
active_producers: Vec<ProducerState>The active producers for the partition.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl PartitionResponse
impl PartitionResponse
pub fn with_partition_index(self, value: i32) -> Self
pub fn with_error_code(self, value: i16) -> Self
pub fn with_error_message(self, value: Option<KafkaString>) -> Self
pub fn with_active_producers(self, value: Vec<ProducerState>) -> 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 PartitionResponse
impl Clone for PartitionResponse
Source§fn clone(&self) -> PartitionResponse
fn clone(&self) -> PartitionResponse
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 Debug for PartitionResponse
impl Debug for PartitionResponse
Source§impl Default for PartitionResponse
impl Default for PartitionResponse
Source§impl PartialEq for PartitionResponse
impl PartialEq for PartitionResponse
Source§fn eq(&self, other: &PartitionResponse) -> bool
fn eq(&self, other: &PartitionResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionResponse
Auto Trait Implementations§
impl !Freeze for PartitionResponse
impl RefUnwindSafe for PartitionResponse
impl Send for PartitionResponse
impl Sync for PartitionResponse
impl Unpin for PartitionResponse
impl UnsafeUnpin for PartitionResponse
impl UnwindSafe for PartitionResponse
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