Enum fluvio::metadata::topic::ReplicaSpec
source · pub enum ReplicaSpec {
Assigned(PartitionMaps),
Computed(TopicReplicaParam),
Mirror(MirrorConfig),
}
Variants§
Implementations§
source§impl ReplicaSpec
impl ReplicaSpec
pub fn new_assigned<J>(partition_map: J) -> ReplicaSpecwhere
J: Into<PartitionMaps>,
pub fn new_computed( partitions: u32, replication: u32, ignore_rack: Option<bool> ) -> ReplicaSpec
pub fn is_computed(&self) -> bool
pub fn partitions(&self) -> u32
pub fn replication_factor(&self) -> Option<u32>
pub fn ignore_rack_assignment(&self) -> bool
pub fn type_label(&self) -> &'static str
pub fn partitions_display(&self) -> String
pub fn replication_factor_display(&self) -> String
pub fn ignore_rack_assign_display(&self) -> &'static str
pub fn partition_map_str(&self) -> Option<String>
Trait Implementations§
source§impl Clone for ReplicaSpec
impl Clone for ReplicaSpec
source§fn clone(&self) -> ReplicaSpec
fn clone(&self) -> ReplicaSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReplicaSpec
impl Debug for ReplicaSpec
source§impl Decoder for ReplicaSpec
impl Decoder for ReplicaSpec
source§impl Default for ReplicaSpec
impl Default for ReplicaSpec
source§fn default() -> ReplicaSpec
fn default() -> ReplicaSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReplicaSpec
impl<'de> Deserialize<'de> for ReplicaSpec
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ReplicaSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ReplicaSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ReplicaSpec
impl Display for ReplicaSpec
source§impl Encoder for ReplicaSpec
impl Encoder for ReplicaSpec
source§impl From<ReplicaSpec> for TopicSpec
impl From<ReplicaSpec> for TopicSpec
source§fn from(replicas: ReplicaSpec) -> TopicSpec
fn from(replicas: ReplicaSpec) -> TopicSpec
Converts to this type from the input type.
source§impl PartialEq for ReplicaSpec
impl PartialEq for ReplicaSpec
source§fn eq(&self, other: &ReplicaSpec) -> bool
fn eq(&self, other: &ReplicaSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReplicaSpec
impl Serialize for ReplicaSpec
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ReplicaSpec
impl StructuralPartialEq for ReplicaSpec
Auto Trait Implementations§
impl Freeze for ReplicaSpec
impl RefUnwindSafe for ReplicaSpec
impl Send for ReplicaSpec
impl Sync for ReplicaSpec
impl Unpin for ReplicaSpec
impl UnwindSafe for ReplicaSpec
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.