pub struct AlterReplicaLogDirsResult { /* private fields */ }Expand description
The result of the Admin::alter_replica_log_dirs call.
To retrieve the detailed result per specified TopicPartitionReplica, use
values. To retrieve the overall result only, use
all.
Corresponds to org.apache.kafka.clients.admin.AlterReplicaLogDirsResult.
Implementations§
Source§impl AlterReplicaLogDirsResult
impl AlterReplicaLogDirsResult
Sourcepub fn values(&self) -> &HashMap<TopicPartitionReplica, KafkaFuture<()>>
pub fn values(&self) -> &HashMap<TopicPartitionReplica, KafkaFuture<()>>
Returns a map from TopicPartitionReplica to a KafkaFuture which
holds the status of an individual replica movement.
Awaiting a value future returns silently on success; otherwise it yields
one of ClusterAuthorizationFailed, InvalidTopicException,
LogDirNotFound, ReplicaNotAvailable, KafkaStorageError, or
UnknownServerError.
Sourcepub fn all(&self) -> KafkaFuture<()>
pub fn all(&self) -> KafkaFuture<()>
Returns a future which succeeds if all the replica movements have
succeeded, otherwise yields the first error described in
values.
Corresponds to AlterReplicaLogDirsResult.all.