Trait mz_persist_client::dyn_cfg::ConfigType
source · pub trait ConfigType: Sized {
type Default: Into<Self> + Clone;
type Shared;
// Required methods
fn shared<'a>(
config: &Config<Self>,
vals: &'a ConfigSet
) -> Option<&'a Arc<Self::Shared>>;
fn to_val(val: &Self) -> ConfigVal;
fn get(x: &Self::Shared) -> Self;
fn set(x: &Self::Shared, val: Self);
}Expand description
A type usable as a Config.
Required Associated Types§
sourcetype Default: Into<Self> + Clone
type Default: Into<Self> + Clone
A const-compatible type suitable for use as the default value of configs of this type.
A value of this type, sharable between config value updaters (like LaunchDarkly) and config value retrievers.
Required Methods§
Extracts the sharable value for a config of this type from a set.
External users likely want Config::shared instead.
sourcefn get(x: &Self::Shared) -> Self
fn get(x: &Self::Shared) -> Self
Retrieves the current config value of this type from a value of its corresponding sharable type.
External users likely want Config::get or Config::get_from_shared instead.
Object Safety§
This trait is not object safe.