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.
Implementations§
Source§impl RemoveMembersFromConsumerGroupOptions
impl RemoveMembersFromConsumerGroupOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates options that remove every member of the group: remove_all() returns true.
Sourcepub fn with_members(
members: impl IntoIterator<Item = MemberToRemove>,
) -> Result<Self, Error>
pub fn with_members( members: impl IntoIterator<Item = MemberToRemove>, ) -> Result<Self, Error>
Sourcepub fn set_reason(&mut self, reason: Option<String>)
pub fn set_reason(&mut self, reason: Option<String>)
Sets an optional reason.
§Arguments
reason- the reason sent with the request, orNoneto clear a reason set earlier.
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
Sourcepub fn members(&self) -> &HashSet<MemberToRemove>
pub fn members(&self) -> &HashSet<MemberToRemove>
Returns the members to remove, empty when all members are removed.
Sourcepub fn remove_all(&self) -> bool
pub fn remove_all(&self) -> bool
Returns whether all members should be removed, as no specific members were provided.
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
Returns the timeout in milliseconds for this operation, or None if the
default API timeout for the AdminClient should be used.
Trait Implementations§
Source§impl Clone for RemoveMembersFromConsumerGroupOptions
impl Clone for RemoveMembersFromConsumerGroupOptions
Source§fn clone(&self) -> RemoveMembersFromConsumerGroupOptions
fn clone(&self) -> RemoveMembersFromConsumerGroupOptions
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 Default for RemoveMembersFromConsumerGroupOptions
impl Default for RemoveMembersFromConsumerGroupOptions
Source§fn default() -> RemoveMembersFromConsumerGroupOptions
fn default() -> RemoveMembersFromConsumerGroupOptions
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more