pub struct GroupListing { /* private fields */ }Expand description
A listing of a group in the cluster.
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.
§Arguments
group_id- Group Idgroup_type- Group typeprotocol- Protocolgroup_state- Group state
Sourcepub fn type(&self) -> Option<GroupType>
pub fn type(&self) -> Option<GroupType>
The type of the group.
If the broker returns a group type which is not recognised, as might happen when talking
to a broker with a later version, the type will be Some(GroupType::Unknown). If the
broker is earlier than version 2.6.0, the group type will not be available, and the type
will be None.
§Returns
The type, if available.
Sourcepub fn group_state(&self) -> Option<GroupState>
pub fn group_state(&self) -> Option<GroupState>
The group state.
If the broker returns a group state which is not recognised, as might happen when talking
to a broker with a later version, the state will be Some(GroupState::Unknown).
§Returns
The state, if available.
Sourcepub fn is_simple_consumer_group(&self) -> bool
pub fn is_simple_consumer_group(&self) -> bool
Returns whether the group is a simple consumer group or not.
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