pub struct Partition<'a> { /* private fields */ }
Expand description
Metadata about a particular topic partition.
A partition can be seen as either available or not by
kafka-rust
. “Available” partitions are partitions with an
assigned leader broker and can be send messages to or fetched
messages from. Non-available partitions are ignored by
kafka-rust
. Whether or not a partition is currently “available”
can be determined by testing for partition.leader().is_some()
or
more directly through partition.is_available()
.
Implementations§
Source§impl<'a> Partition<'a>
impl<'a> Partition<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Partition<'a>
impl<'a> RefUnwindSafe for Partition<'a>
impl<'a> Send for Partition<'a>
impl<'a> Sync for Partition<'a>
impl<'a> Unpin for Partition<'a>
impl<'a> UnwindSafe for Partition<'a>
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