pub struct Partitions { /* private fields */ }
Expand description
Producer relevant partition information of a particular topic.
Indented for use by Partition
s.
Implementations§
Source§impl Partitions
impl Partitions
Sourcepub fn available_ids(&self) -> &[i32]
pub fn available_ids(&self) -> &[i32]
Retrieves the list of the identifiers of currently “available” partitions for the given topic. This list excludes partitions which do not have a leader broker assigned.
Sourcepub fn num_available(&self) -> u32
pub fn num_available(&self) -> u32
Retrieves the number of “available” partitions. This is a
merely a convenience method. See Partitions::available_ids
.
Auto Trait Implementations§
impl Freeze for Partitions
impl RefUnwindSafe for Partitions
impl Send for Partitions
impl Sync for Partitions
impl Unpin for Partitions
impl UnwindSafe for Partitions
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