pub struct AlterPartitionReassignmentsOptions { /* private fields */ }Expand description
Options for Admin::alter_partition_reassignments.
Corresponds to
org.apache.kafka.clients.admin.AlterPartitionReassignmentsOptions.
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
Set the timeout in milliseconds for this operation, or None to use the
default API timeout for the AdminClient.
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
The timeout in milliseconds for this operation, or None if the default
API timeout 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.
Mirrors allowReplicationFactorChange(boolean).
Sourcepub fn allow_replication_factor_change(&self) -> bool
pub fn allow_replication_factor_change(&self) -> bool
A boolean indicating if the alter-partition-reassignments should be allowed to alter the replication factor of a partition.
Mirrors allowReplicationFactorChange().
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 moreSource§impl PartialEq for AlterPartitionReassignmentsOptions
impl PartialEq for AlterPartitionReassignmentsOptions
Source§fn eq(&self, other: &AlterPartitionReassignmentsOptions) -> bool
fn eq(&self, other: &AlterPartitionReassignmentsOptions) -> bool
self and other values to be equal, and is used by ==.impl Eq for AlterPartitionReassignmentsOptions
impl StructuralPartialEq for AlterPartitionReassignmentsOptions
Auto Trait Implementations§
impl Freeze for AlterPartitionReassignmentsOptions
impl RefUnwindSafe for AlterPartitionReassignmentsOptions
impl Send for AlterPartitionReassignmentsOptions
impl Sync for AlterPartitionReassignmentsOptions
impl Unpin for AlterPartitionReassignmentsOptions
impl UnsafeUnpin for AlterPartitionReassignmentsOptions
impl UnwindSafe for AlterPartitionReassignmentsOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.