pub enum ParameterScope {
Environment,
Cluster,
Replica,
}Expand description
The scope at which a synced parameter’s value may be overridden.
Every synced parameter declares its scope class as part of its definition.
The declaration is the single source of truth for which contexts the
LaunchDarkly sync loop evaluates and where the resolved value may be
overridden. See doc/developer/design/20260609_scoped_feature_flags.md.
Variants§
Environment
Environment-wide only; no cluster/replica overrides. The default, so all existing synced parameters are unchanged.
Cluster
Cluster-coherent: env-wide base plus per-cluster overrides. Evaluated
with the cluster context (replica-free) and resolved at plan time via
OptimizerFeatureOverrides. e.g. optimizer features.
Replica
Replica-local: env-wide base plus per-replica / per-size-family
overrides. Evaluated with the replica context and resolved at the
controller’s per-replica dyncfg push. e.g. lgalloc, persist pager, LZ4.
Implementations§
Source§impl ParameterScope
impl ParameterScope
Sourcepub const DEFAULT: ParameterScope = ParameterScope::Environment
pub const DEFAULT: ParameterScope = ParameterScope::Environment
The scope applied to a parameter that does not declare one: environment-
wide, i.e. no cluster/replica overrides. A const so it can be used in
the const contexts (system-var constructors, the feature_flags!
macro) where Default::default is unavailable.
Trait Implementations§
Source§impl Clone for ParameterScope
impl Clone for ParameterScope
Source§fn clone(&self) -> ParameterScope
fn clone(&self) -> ParameterScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParameterScope
impl Debug for ParameterScope
Source§impl Default for ParameterScope
impl Default for ParameterScope
Source§impl PartialEq for ParameterScope
impl PartialEq for ParameterScope
Source§fn eq(&self, other: &ParameterScope) -> bool
fn eq(&self, other: &ParameterScope) -> bool
self and other values to be equal, and is used by ==.impl Copy for ParameterScope
impl Eq for ParameterScope
impl StructuralPartialEq for ParameterScope
Auto Trait Implementations§
impl Freeze for ParameterScope
impl RefUnwindSafe for ParameterScope
impl Send for ParameterScope
impl Sync for ParameterScope
impl Unpin for ParameterScope
impl UnsafeUnpin for ParameterScope
impl UnwindSafe for ParameterScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.