pub struct RemoveMembersFromConsumerGroupOptions { /* private fields */ }Expand description
Options for Admin::remove_members_from_consumer_group. Carries the members
to be removed from the consumer group.
Corresponds to
org.apache.kafka.clients.admin.RemoveMembersFromConsumerGroupOptions.
Implementations§
Source§impl RemoveMembersFromConsumerGroupOptions
impl RemoveMembersFromConsumerGroupOptions
Sourcepub fn new(
members: impl IntoIterator<Item = MemberToRemove>,
) -> Result<Self, Error>
pub fn new( members: impl IntoIterator<Item = MemberToRemove>, ) -> Result<Self, Error>
Creates options for removing the given members.
Mirrors Java’s RemoveMembersFromConsumerGroupOptions(Collection<MemberToRemove>).
§Errors
Returns an error (Java’s IllegalArgumentException) if members is
empty. Use Default::default to remove all members instead.
Sourcepub fn set_reason(&mut self, reason: impl Into<String>)
pub fn set_reason(&mut self, reason: impl Into<String>)
Sets an optional reason.
Mirrors Java’s reason(String).
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 members(&self) -> &HashSet<MemberToRemove>
pub fn members(&self) -> &HashSet<MemberToRemove>
The members to remove.
Mirrors Java’s members().
Sourcepub fn remove_all(&self) -> bool
pub fn remove_all(&self) -> bool
Whether all members should be removed (i.e. no specific members were provided).
Mirrors Java’s removeAll().
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 RemoveMembersFromConsumerGroupOptions
impl Clone for RemoveMembersFromConsumerGroupOptions
Source§fn clone(&self) -> RemoveMembersFromConsumerGroupOptions
fn clone(&self) -> RemoveMembersFromConsumerGroupOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RemoveMembersFromConsumerGroupOptions
impl Default for RemoveMembersFromConsumerGroupOptions
Source§fn default() -> RemoveMembersFromConsumerGroupOptions
fn default() -> RemoveMembersFromConsumerGroupOptions
Source§impl PartialEq for RemoveMembersFromConsumerGroupOptions
impl PartialEq for RemoveMembersFromConsumerGroupOptions
Source§fn eq(&self, other: &RemoveMembersFromConsumerGroupOptions) -> bool
fn eq(&self, other: &RemoveMembersFromConsumerGroupOptions) -> bool
self and other values to be equal, and is used by ==.impl Eq for RemoveMembersFromConsumerGroupOptions
impl StructuralPartialEq for RemoveMembersFromConsumerGroupOptions
Auto Trait Implementations§
impl Freeze for RemoveMembersFromConsumerGroupOptions
impl RefUnwindSafe for RemoveMembersFromConsumerGroupOptions
impl Send for RemoveMembersFromConsumerGroupOptions
impl Sync for RemoveMembersFromConsumerGroupOptions
impl Unpin for RemoveMembersFromConsumerGroupOptions
impl UnsafeUnpin for RemoveMembersFromConsumerGroupOptions
impl UnwindSafe for RemoveMembersFromConsumerGroupOptions
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.