Skip to main content

AlterReplicaLogDirsResult

Struct AlterReplicaLogDirsResult 

Source
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.

Implementations§

Source§

impl AlterReplicaLogDirsResult

Source

pub fn values(&self) -> &HashMap<TopicPartitionReplica, KafkaFuture<()>>

Returns a map from TopicPartitionReplica to KafkaFuture which holds the status of individual replica movement. To check the result of individual replica movement, call KafkaFuture::get from the value contained in the returned map. If there is no error, it will return silently; if not, it returns an error like the following:

  • Error::is_cluster_authorization_error: Authorization failed. (CLUSTER_AUTHORIZATION_FAILED, 31)
  • Error::is_invalid_topic_error: The specified topic name is too long. (INVALID_TOPIC_EXCEPTION, 17)
  • Error::is_log_dir_not_found_error: The specified log directory is not found in the broker. (LOG_DIR_NOT_FOUND, 57)
  • Error::is_replica_not_available_error: The replica does not exist on the broker. (REPLICA_NOT_AVAILABLE, 9)
  • Error::is_kafka_storage_error: Disk error occurred. (KAFKA_STORAGE_ERROR, 56)
  • Error::is_unknown_server_error: Unknown. (UNKNOWN_SERVER_ERROR, -1)
§Translation notes

KafkaFuture::get returns the cause itself: it has no cancellation, interruption or execution wrapper.

Source

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.

Trait Implementations§

Source§

impl Debug for AlterReplicaLogDirsResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V