Struct rdkafka::admin::NewPartitions[][src]

pub struct NewPartitions<'a> {
    pub topic_name: &'a str,
    pub new_partition_count: usize,
    pub assignment: Option<PartitionAssignment<'a>>,
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.