pub struct ListGroupsOptions { /* private fields */ }Expand description
Options for Admin::list_groups.
Corresponds to org.apache.kafka.clients.admin.ListGroupsOptions.
Implementations§
Source§impl ListGroupsOptions
impl ListGroupsOptions
Sourcepub fn for_consumer_groups() -> Self
pub fn for_consumer_groups() -> Self
Options selecting only consumer groups (classic + consumer types,
empty/consumer protocol types).
Mirrors ListGroupsOptions.forConsumerGroups.
Options selecting only share groups.
Mirrors ListGroupsOptions.forShareGroups.
Sourcepub fn for_streams_groups() -> Self
pub fn for_streams_groups() -> Self
Options selecting only streams groups.
Mirrors ListGroupsOptions.forStreamsGroups.
Sourcepub fn in_group_states(self, group_states: HashSet<GroupState>) -> Self
pub fn in_group_states(self, group_states: HashSet<GroupState>) -> Self
Filter by group states. Mirrors inGroupStates.
Sourcepub fn with_protocol_types(self, protocol_types: HashSet<String>) -> Self
pub fn with_protocol_types(self, protocol_types: HashSet<String>) -> Self
Filter by protocol types. Mirrors withProtocolTypes.
Sourcepub fn with_types(self, types: HashSet<GroupType>) -> Self
pub fn with_types(self, types: HashSet<GroupType>) -> Self
Filter by group types. Mirrors withTypes.
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
Set the operation timeout in milliseconds (or None for the default).
Sourcepub fn group_states(&self) -> &HashSet<GroupState>
pub fn group_states(&self) -> &HashSet<GroupState>
The requested group states. Mirrors groupStates().
Sourcepub fn protocol_types(&self) -> &HashSet<String>
pub fn protocol_types(&self) -> &HashSet<String>
The requested protocol types. Mirrors protocolTypes().
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
The operation timeout in milliseconds, or None for the default.
Trait Implementations§
Source§impl Clone for ListGroupsOptions
impl Clone for ListGroupsOptions
Source§fn clone(&self) -> ListGroupsOptions
fn clone(&self) -> ListGroupsOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListGroupsOptions
impl Debug for ListGroupsOptions
Source§impl Default for ListGroupsOptions
impl Default for ListGroupsOptions
Source§fn default() -> ListGroupsOptions
fn default() -> ListGroupsOptions
Source§impl PartialEq for ListGroupsOptions
impl PartialEq for ListGroupsOptions
impl Eq for ListGroupsOptions
impl StructuralPartialEq for ListGroupsOptions
Auto Trait Implementations§
impl Freeze for ListGroupsOptions
impl RefUnwindSafe for ListGroupsOptions
impl Send for ListGroupsOptions
impl Sync for ListGroupsOptions
impl Unpin for ListGroupsOptions
impl UnsafeUnpin for ListGroupsOptions
impl UnwindSafe for ListGroupsOptions
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
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
§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
key and return true if they are equal.