pub struct PartitionProducerState { /* private fields */ }Expand description
The producer state of a single partition.
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.
§Arguments
active_producers- the producers currently active on the partition.
Sourcepub fn active_producers(&self) -> &[ProducerState]
pub fn active_producers(&self) -> &[ProducerState]
Returns 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
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