pub struct HomeMirrorConfig(/* private fields */);
Implementations§
source§impl HomeMirrorConfig
impl HomeMirrorConfig
sourcepub fn from_simple(topic: &str, remote_clusters: Vec<String>) -> Self
pub fn from_simple(topic: &str, remote_clusters: Vec<String>) -> Self
generate home config from simple mirror cluster list this uses home topic to generate remote replicas
pub fn partition_count(&self) -> PartitionCount
pub fn replication_factor(&self) -> Option<ReplicationFactor>
pub fn partitions(&self) -> &Vec<HomePartitionConfig>
pub fn as_partition_maps(&self) -> PartitionMaps
Trait Implementations§
source§impl Clone for HomeMirrorConfig
impl Clone for HomeMirrorConfig
source§fn clone(&self) -> HomeMirrorConfig
fn clone(&self) -> HomeMirrorConfig
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 HomeMirrorConfig
impl Debug for HomeMirrorConfig
source§impl Decoder for HomeMirrorConfig
impl Decoder for HomeMirrorConfig
source§impl Default for HomeMirrorConfig
impl Default for HomeMirrorConfig
source§fn default() -> HomeMirrorConfig
fn default() -> HomeMirrorConfig
Returns the “default value” for a type. Read more
source§impl Encoder for HomeMirrorConfig
impl Encoder for HomeMirrorConfig
source§impl From<Vec<HomePartitionConfig>> for HomeMirrorConfig
impl From<Vec<HomePartitionConfig>> for HomeMirrorConfig
source§fn from(partitions: Vec<HomePartitionConfig>) -> Self
fn from(partitions: Vec<HomePartitionConfig>) -> Self
Converts to this type from the input type.
source§impl PartialEq for HomeMirrorConfig
impl PartialEq for HomeMirrorConfig
source§fn eq(&self, other: &HomeMirrorConfig) -> bool
fn eq(&self, other: &HomeMirrorConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HomeMirrorConfig
impl StructuralPartialEq for HomeMirrorConfig
Auto Trait Implementations§
impl Freeze for HomeMirrorConfig
impl RefUnwindSafe for HomeMirrorConfig
impl Send for HomeMirrorConfig
impl Sync for HomeMirrorConfig
impl Unpin for HomeMirrorConfig
impl UnwindSafe for HomeMirrorConfig
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.