pub struct ListGroupsResult { /* private fields */ }Expand description
The result of Admin::list_groups.
Corresponds to org.apache.kafka.clients.admin.ListGroupsResult.
Java’s constructor takes a single KafkaFuture<Collection<Object>> mixing
GroupListings and Throwables and, via thenApply, splits it into the
all/valid/errors futures. The Rust port models the mixed collection as
Vec<Result<GroupListing, Error>> (a listing is Ok, an error is
Err) and derives the three views lazily with then_apply/then_apply_try
— semantically identical (all fails with the first error; valid/errors
never fail).
Implementations§
Source§impl ListGroupsResult
impl ListGroupsResult
Sourcepub fn all(&self) -> KafkaFuture<Vec<GroupListing>>
pub fn all(&self) -> KafkaFuture<Vec<GroupListing>>
A future yielding either the first error, or the full set of listings.
Mirrors all().
Sourcepub fn valid(&self) -> KafkaFuture<Vec<GroupListing>>
pub fn valid(&self) -> KafkaFuture<Vec<GroupListing>>
A future yielding just the valid listings (never fails). Mirrors valid().
Sourcepub fn errors(&self) -> KafkaFuture<Vec<Error>>
pub fn errors(&self) -> KafkaFuture<Vec<Error>>
A future yielding just the errors (never fails). Mirrors errors().
Trait Implementations§
Source§impl Clone for ListGroupsResult
impl Clone for ListGroupsResult
Source§fn clone(&self) -> ListGroupsResult
fn clone(&self) -> ListGroupsResult
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 moreAuto Trait Implementations§
impl Freeze for ListGroupsResult
impl !RefUnwindSafe for ListGroupsResult
impl Send for ListGroupsResult
impl Sync for ListGroupsResult
impl Unpin for ListGroupsResult
impl UnsafeUnpin for ListGroupsResult
impl !UnwindSafe for ListGroupsResult
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