pub struct MemberAssignment { /* private fields */ }Expand description
A description of the assignments of a specific group member.
Corresponds to org.apache.kafka.clients.admin.MemberAssignment.
Implementations§
Source§impl MemberAssignment
impl MemberAssignment
Sourcepub fn new(topic_partitions: HashSet<TopicPartition>) -> Self
pub fn new(topic_partitions: HashSet<TopicPartition>) -> Self
Creates an instance with the specified topic partitions.
Mirrors new MemberAssignment(Set<TopicPartition>).
Sourcepub fn topic_partitions(&self) -> &HashSet<TopicPartition>
pub fn topic_partitions(&self) -> &HashSet<TopicPartition>
The topic partitions assigned to a group member.
Mirrors topicPartitions().
Trait Implementations§
Source§impl Clone for MemberAssignment
impl Clone for MemberAssignment
Source§fn clone(&self) -> MemberAssignment
fn clone(&self) -> MemberAssignment
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 MemberAssignment
impl Debug for MemberAssignment
Source§impl Default for MemberAssignment
impl Default for MemberAssignment
Source§fn default() -> MemberAssignment
fn default() -> MemberAssignment
Returns the “default value” for a type. Read more
Source§impl Display for MemberAssignment
impl Display for MemberAssignment
Source§impl PartialEq for MemberAssignment
impl PartialEq for MemberAssignment
impl Eq for MemberAssignment
impl StructuralPartialEq for MemberAssignment
Auto Trait Implementations§
impl Freeze for MemberAssignment
impl RefUnwindSafe for MemberAssignment
impl Send for MemberAssignment
impl Sync for MemberAssignment
impl Unpin for MemberAssignment
impl UnsafeUnpin for MemberAssignment
impl UnwindSafe for MemberAssignment
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