pub struct MetadataResponsePartition {
pub error: Option<Error>,
pub partition_index: Int32,
pub leader_id: Int32,
pub replica_nodes: Array<Int32>,
pub isr_nodes: Array<Int32>,
}Fields§
§error: Option<Error>The partition error if any
partition_index: Int32The partition index
leader_id: Int32The ID of the leader broker
replica_nodes: Array<Int32>The set of all nodes that host this partition
isr_nodes: Array<Int32>The set of all nodes that are in sync with the leader for this partition
Trait Implementations§
Source§impl Clone for MetadataResponsePartition
impl Clone for MetadataResponsePartition
Source§fn clone(&self) -> MetadataResponsePartition
fn clone(&self) -> MetadataResponsePartition
Returns a duplicate 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 moreSource§impl Debug for MetadataResponsePartition
impl Debug for MetadataResponsePartition
Source§impl<R> ReadVersionedType<R> for MetadataResponsePartitionwhere
R: Read,
impl<R> ReadVersionedType<R> for MetadataResponsePartitionwhere
R: Read,
fn read_versioned( reader: &mut R, version: ApiVersion, ) -> Result<Self, ReadVersionedError>
impl Eq for MetadataResponsePartition
impl StructuralPartialEq for MetadataResponsePartition
Auto Trait Implementations§
impl Freeze for MetadataResponsePartition
impl RefUnwindSafe for MetadataResponsePartition
impl Send for MetadataResponsePartition
impl Sync for MetadataResponsePartition
impl Unpin for MetadataResponsePartition
impl UnwindSafe for MetadataResponsePartition
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