Struct rdkafka::admin::NewPartitions [−][src]
Configuration for a CreatePartitions operation.
Fields
topic_name: &'a str
The name of the topic to which partitions should be added.
new_partition_count: usize
The total number of partitions after the operation completes.
assignment: Option<PartitionAssignment<'a>>
The replica assignments for the new partitions.
Implementations
impl<'a> NewPartitions<'a>
[src]
pub fn new(topic_name: &'a str, new_partition_count: usize) -> NewPartitions<'a>
[src]
Creates a new NewPartitions
.
pub fn assign(self, assignment: PartitionAssignment<'a>) -> NewPartitions<'_>
[src]
Sets the partition replica assignment for the new partitions. Only assignments for newly created replicas should be included.
Auto Trait Implementations
impl<'a> RefUnwindSafe for NewPartitions<'a>
impl<'a> Send for NewPartitions<'a>
impl<'a> Sync for NewPartitions<'a>
impl<'a> Unpin for NewPartitions<'a>
impl<'a> UnwindSafe for NewPartitions<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,