pub struct TopicReplicaParam {
pub partitions: PartitionCount,
pub replication_factor: ReplicationFactor,
pub ignore_rack_assignment: IgnoreRackAssignment,
}
Expand description
Topic param
Fields
partitions: PartitionCount
replication_factor: ReplicationFactor
ignore_rack_assignment: IgnoreRackAssignment
Implementations
sourceimpl TopicReplicaParam
impl TopicReplicaParam
pub fn new(
partitions: PartitionCount,
replication_factor: ReplicationFactor,
ignore_rack_assignment: IgnoreRackAssignment
) -> Self
Trait Implementations
sourceimpl Clone for TopicReplicaParam
impl Clone for TopicReplicaParam
sourcefn clone(&self) -> TopicReplicaParam
fn clone(&self) -> TopicReplicaParam
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TopicReplicaParam
impl Debug for TopicReplicaParam
sourceimpl Decoder for TopicReplicaParam
impl Decoder for TopicReplicaParam
sourceimpl Default for TopicReplicaParam
impl Default for TopicReplicaParam
sourcefn default() -> TopicReplicaParam
fn default() -> TopicReplicaParam
Returns the “default value” for a type. Read more
sourceimpl Display for TopicReplicaParam
impl Display for TopicReplicaParam
sourceimpl Encoder for TopicReplicaParam
impl Encoder for TopicReplicaParam
sourceimpl From<(i32, i32, bool)> for TopicReplicaParam
impl From<(i32, i32, bool)> for TopicReplicaParam
sourcefn from(
value: (PartitionCount, ReplicationFactor, IgnoreRackAssignment)
) -> Self
fn from(
value: (PartitionCount, ReplicationFactor, IgnoreRackAssignment)
) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TopicReplicaParam> for TopicReplicaParam
impl PartialEq<TopicReplicaParam> for TopicReplicaParam
sourcefn eq(&self, other: &TopicReplicaParam) -> bool
fn eq(&self, other: &TopicReplicaParam) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TopicReplicaParam) -> bool
fn ne(&self, other: &TopicReplicaParam) -> bool
This method tests for !=
.
impl StructuralPartialEq for TopicReplicaParam
Auto Trait Implementations
impl RefUnwindSafe for TopicReplicaParam
impl Send for TopicReplicaParam
impl Sync for TopicReplicaParam
impl Unpin for TopicReplicaParam
impl UnwindSafe for TopicReplicaParam
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more