pub struct PartitionProducerState { /* private fields */ }Expand description
The producer state of a single partition.
Corresponds to DescribeProducersResult.PartitionProducerState.
Implementations§
Source§impl PartitionProducerState
impl PartitionProducerState
Sourcepub fn new(active_producers: Vec<ProducerState>) -> Self
pub fn new(active_producers: Vec<ProducerState>) -> Self
Creates a new PartitionProducerState from the active producers.
Sourcepub fn active_producers(&self) -> &[ProducerState]
pub fn active_producers(&self) -> &[ProducerState]
The active producers for this partition.
Trait Implementations§
Source§impl Clone for PartitionProducerState
impl Clone for PartitionProducerState
Source§fn clone(&self) -> PartitionProducerState
fn clone(&self) -> PartitionProducerState
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 PartitionProducerState
impl Debug for PartitionProducerState
Source§impl Display for PartitionProducerState
impl Display for PartitionProducerState
Source§impl PartialEq for PartitionProducerState
impl PartialEq for PartitionProducerState
impl Eq for PartitionProducerState
impl StructuralPartialEq for PartitionProducerState
Auto Trait Implementations§
impl Freeze for PartitionProducerState
impl RefUnwindSafe for PartitionProducerState
impl Send for PartitionProducerState
impl Sync for PartitionProducerState
impl Unpin for PartitionProducerState
impl UnsafeUnpin for PartitionProducerState
impl UnwindSafe for PartitionProducerState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more