Enum fluvio::metadata::topic::MirrorConfig
source · pub enum MirrorConfig {
Remote(RemoteMirrorConfig),
Home(HomeMirrorConfig),
}
Variants§
Remote(RemoteMirrorConfig)
Home(HomeMirrorConfig)
Implementations§
source§impl MirrorConfig
impl MirrorConfig
pub fn partition_count(&self) -> u32
pub fn replication_factor(&self) -> Option<u32>
pub fn as_partition_maps(&self) -> PartitionMaps
Trait Implementations§
source§impl Clone for MirrorConfig
impl Clone for MirrorConfig
source§fn clone(&self) -> MirrorConfig
fn clone(&self) -> MirrorConfig
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 MirrorConfig
impl Debug for MirrorConfig
source§impl Decoder for MirrorConfig
impl Decoder for MirrorConfig
source§impl Default for MirrorConfig
impl Default for MirrorConfig
source§fn default() -> MirrorConfig
fn default() -> MirrorConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MirrorConfig
impl<'de> Deserialize<'de> for MirrorConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MirrorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MirrorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for MirrorConfig
impl Display for MirrorConfig
source§impl Encoder for MirrorConfig
impl Encoder for MirrorConfig
source§impl PartialEq for MirrorConfig
impl PartialEq for MirrorConfig
source§fn eq(&self, other: &MirrorConfig) -> bool
fn eq(&self, other: &MirrorConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MirrorConfig
impl Serialize for MirrorConfig
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 MirrorConfig
impl StructuralPartialEq for MirrorConfig
Auto Trait Implementations§
impl Freeze for MirrorConfig
impl RefUnwindSafe for MirrorConfig
impl Send for MirrorConfig
impl Sync for MirrorConfig
impl Unpin for MirrorConfig
impl UnwindSafe for MirrorConfig
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.