pub struct GroupListing { /* private fields */ }Expand description
A listing of a group in the cluster.
Corresponds to org.apache.kafka.clients.admin.GroupListing.
Implementations§
Source§impl GroupListing
impl GroupListing
Sourcepub fn new(
group_id: impl Into<String>,
group_type: Option<GroupType>,
protocol: impl Into<String>,
group_state: Option<GroupState>,
) -> Self
pub fn new( group_id: impl Into<String>, group_type: Option<GroupType>, protocol: impl Into<String>, group_state: Option<GroupState>, ) -> Self
Creates a group listing.
Mirrors new GroupListing(String, Optional<GroupType>, String, Optional<GroupState>).
Sourcepub fn group_type(&self) -> Option<GroupType>
pub fn group_type(&self) -> Option<GroupType>
The type of the group, if available. Mirrors type().
Sourcepub fn group_state(&self) -> Option<GroupState>
pub fn group_state(&self) -> Option<GroupState>
The group state, if available. Mirrors groupState().
Sourcepub fn is_simple_consumer_group(&self) -> bool
pub fn is_simple_consumer_group(&self) -> bool
Whether the group is a simple consumer group. Mirrors
isSimpleConsumerGroup(): a classic group with an empty protocol.
Trait Implementations§
Source§impl Clone for GroupListing
impl Clone for GroupListing
Source§fn clone(&self) -> GroupListing
fn clone(&self) -> GroupListing
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 GroupListing
impl Debug for GroupListing
Source§impl Display for GroupListing
impl Display for GroupListing
Source§impl Hash for GroupListing
impl Hash for GroupListing
Source§impl PartialEq for GroupListing
impl PartialEq for GroupListing
impl Eq for GroupListing
impl StructuralPartialEq for GroupListing
Auto Trait Implementations§
impl Freeze for GroupListing
impl RefUnwindSafe for GroupListing
impl Send for GroupListing
impl Sync for GroupListing
impl Unpin for GroupListing
impl UnsafeUnpin for GroupListing
impl UnwindSafe for GroupListing
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