pub struct DescribeUserScramCredentialsResult { /* private fields */ }Expand description
The result of the Admin::describe_user_scram_credentials call.
Corresponds to
org.apache.kafka.clients.admin.DescribeUserScramCredentialsResult.
Holds a single future over the raw response data; all(), users() and
description() are per-view refinements (Java uses whenComplete on the
data future to complete new KafkaFutureImpls — here then_apply /
then_apply_try express the same transform-on-completion).
Implementations§
Source§impl DescribeUserScramCredentialsResult
impl DescribeUserScramCredentialsResult
Sourcepub fn all(
&self,
) -> KafkaFuture<HashMap<String, UserScramCredentialsDescription>>
pub fn all( &self, ) -> KafkaFuture<HashMap<String, UserScramCredentialsDescription>>
Returns a future for the results of all described users, keyed by user name. The future completes successfully only if all such user descriptions complete successfully.
Mirrors DescribeUserScramCredentialsResult.all(). A successfully
described user is one with either a NONE or a RESOURCE_NOT_FOUND
error code; the first user with any other error code fails the whole
future.
Sourcepub fn users(&self) -> KafkaFuture<Vec<String>>
pub fn users(&self) -> KafkaFuture<Vec<String>>
Returns a future indicating the distinct users that meet the request criteria and that have at least one credential.
Mirrors DescribeUserScramCredentialsResult.users(). Users that do not
exist / have no credential (RESOURCE_NOT_FOUND) are excluded; users that
have a credential but could not be described are included.
Sourcepub fn description(
&self,
user_name: &str,
) -> KafkaFuture<UserScramCredentialsDescription>
pub fn description( &self, user_name: &str, ) -> KafkaFuture<UserScramCredentialsDescription>
Returns a future indicating the description results for the given user.
Mirrors DescribeUserScramCredentialsResult.description(String). If the
given user is not present in the described users, the future completes
exceptionally with a RESOURCE_NOT_FOUND error (“No such user: …”).
Trait Implementations§
Source§impl Clone for DescribeUserScramCredentialsResult
impl Clone for DescribeUserScramCredentialsResult
Source§fn clone(&self) -> DescribeUserScramCredentialsResult
fn clone(&self) -> DescribeUserScramCredentialsResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more