Enum rdkafka::admin::TopicReplication
source · pub enum TopicReplication<'a> {
Fixed(i32),
Variable(PartitionAssignment<'a>),
}
Expand description
Replication configuration for a new topic.
Variants§
Fixed(i32)
All partitions should use the same fixed replication factor.
Variable(PartitionAssignment<'a>)
Each partition should use the replica assignment from
PartitionAssignment
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TopicReplication<'a>
impl<'a> RefUnwindSafe for TopicReplication<'a>
impl<'a> Send for TopicReplication<'a>
impl<'a> Sync for TopicReplication<'a>
impl<'a> Unpin for TopicReplication<'a>
impl<'a> UnwindSafe for TopicReplication<'a>
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
Mutably borrows from an owned value. Read more