pub struct AlterPartitionReassignmentsOptions { /* private fields */ }Expand description
Options for Admin::alter_partition_reassignments.
Implementations§
Source§impl AlterPartitionReassignmentsOptions
impl AlterPartitionReassignmentsOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (default API timeout, replication-factor change allowed).
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
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.
Sourcepub fn set_allow_replication_factor_change(self, allow: bool) -> Self
pub fn set_allow_replication_factor_change(self, allow: bool) -> Self
Set the option indicating if the alter partition reassignments call should be allowed to alter the replication factor of a partition. In cases where it is not allowed, any replication factor change will result in an error returned by the API.
§Arguments
allow- whether the replication factor of a partition may change.
§Returns
This AlterPartitionReassignmentsOptions instance.
Sourcepub fn allow_replication_factor_change(&self) -> bool
pub fn allow_replication_factor_change(&self) -> bool
Returns a boolean indicating if the alter partition reassignments should be allowed to alter the replication factor of a partition. In cases where it is not allowed, any replication factor change will result in an error returned by the API.
Trait Implementations§
Source§impl Clone for AlterPartitionReassignmentsOptions
impl Clone for AlterPartitionReassignmentsOptions
Source§fn clone(&self) -> AlterPartitionReassignmentsOptions
fn clone(&self) -> AlterPartitionReassignmentsOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more