pub struct HomeMirrorInner {
pub partitions: Vec<HomePartitionConfig>,
pub source: bool,
}Fields§
§partitions: Vec<HomePartitionConfig>§source: boolImplementations§
Source§impl HomeMirrorInner
impl HomeMirrorInner
pub fn partition_count(&self) -> u32
pub fn replication_factor(&self) -> Option<u32>
pub fn partitions(&self) -> &Vec<HomePartitionConfig>
pub fn as_partition_maps(&self) -> PartitionMaps
Sourcepub fn add_partition(&mut self, partition: HomePartitionConfig)
pub fn add_partition(&mut self, partition: HomePartitionConfig)
Add partition to home mirror config
Sourcepub fn set_home_to_remote(&mut self, home_to_remote: bool)
pub fn set_home_to_remote(&mut self, home_to_remote: bool)
set home to remote replication
Trait Implementations§
Source§impl Clone for HomeMirrorInner
impl Clone for HomeMirrorInner
Source§fn clone(&self) -> HomeMirrorInner
fn clone(&self) -> HomeMirrorInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HomeMirrorInner
impl Debug for HomeMirrorInner
Source§impl Decoder for HomeMirrorInner
impl Decoder for HomeMirrorInner
Source§impl Default for HomeMirrorInner
impl Default for HomeMirrorInner
Source§fn default() -> HomeMirrorInner
fn default() -> HomeMirrorInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HomeMirrorInner
impl<'de> Deserialize<'de> for HomeMirrorInner
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HomeMirrorInner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HomeMirrorInner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encoder for HomeMirrorInner
impl Encoder for HomeMirrorInner
impl Eq for HomeMirrorInner
Source§impl PartialEq for HomeMirrorInner
impl PartialEq for HomeMirrorInner
Source§impl Serialize for HomeMirrorInner
impl Serialize for HomeMirrorInner
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 StructuralPartialEq for HomeMirrorInner
Auto Trait Implementations§
impl Freeze for HomeMirrorInner
impl RefUnwindSafe for HomeMirrorInner
impl Send for HomeMirrorInner
impl Sync for HomeMirrorInner
impl Unpin for HomeMirrorInner
impl UnsafeUnpin for HomeMirrorInner
impl UnwindSafe for HomeMirrorInner
Blanket Implementations§
impl<T> AsyncConnector for T
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.