pub struct ReplicaElectionResult {
pub topic: KafkaString,
pub partition_result: Vec<PartitionResult>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§topic: KafkaStringThe topic name.
partition_result: Vec<PartitionResult>The results for each partition.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ReplicaElectionResult
impl ReplicaElectionResult
pub fn with_topic(self, value: KafkaString) -> Self
pub fn with_partition_result(self, value: Vec<PartitionResult>) -> 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 ReplicaElectionResult
impl Clone for ReplicaElectionResult
Source§fn clone(&self) -> ReplicaElectionResult
fn clone(&self) -> ReplicaElectionResult
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 ReplicaElectionResult
impl Debug for ReplicaElectionResult
Source§impl Default for ReplicaElectionResult
impl Default for ReplicaElectionResult
Source§impl PartialEq for ReplicaElectionResult
impl PartialEq for ReplicaElectionResult
Source§fn eq(&self, other: &ReplicaElectionResult) -> bool
fn eq(&self, other: &ReplicaElectionResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplicaElectionResult
Auto Trait Implementations§
impl !Freeze for ReplicaElectionResult
impl RefUnwindSafe for ReplicaElectionResult
impl Send for ReplicaElectionResult
impl Sync for ReplicaElectionResult
impl Unpin for ReplicaElectionResult
impl UnsafeUnpin for ReplicaElectionResult
impl UnwindSafe for ReplicaElectionResult
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