Struct mz_persist_client::cfg::PersistParameters
source · pub struct PersistParameters {
pub config_updates: ConfigUpdates,
}
Expand description
Updates to values in PersistConfig.
These reflect updates made to LaunchDarkly. They’re passed from environmentd through storage and compute commands and applied to PersistConfig to change its values.
Parameters can be set (Some
) or unset (None
). Unset parameters should be
interpreted to mean “use the previous value”.
Fields§
§config_updates: ConfigUpdates
Updates to various dynamic config values.
Implementations§
source§impl PersistParameters
impl PersistParameters
sourcepub fn update(&mut self, other: PersistParameters)
pub fn update(&mut self, other: PersistParameters)
Update the parameter values with the set ones from other
.
sourcepub fn apply(&self, cfg: &PersistConfig)
pub fn apply(&self, cfg: &PersistConfig)
Applies the parameter values to persist’s in-memory config object.
Note that these overrides are not all applied atomically: i.e. it’s possible for persist to race with this and see some but not all of the parameters applied.
Trait Implementations§
source§impl Arbitrary for PersistParameters
impl Arbitrary for PersistParameters
§type Parameters = <ConfigUpdates as Arbitrary>::Parameters
type Parameters = <ConfigUpdates as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<<ConfigUpdates as Arbitrary>::Strategy, fn(_: ConfigUpdates) -> PersistParameters>
type Strategy = Map<<ConfigUpdates as Arbitrary>::Strategy, fn(_: ConfigUpdates) -> PersistParameters>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for PersistParameters
impl Clone for PersistParameters
source§fn clone(&self) -> PersistParameters
fn clone(&self) -> PersistParameters
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 PersistParameters
impl Debug for PersistParameters
source§impl Default for PersistParameters
impl Default for PersistParameters
source§fn default() -> PersistParameters
fn default() -> PersistParameters
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PersistParameters
impl<'de> Deserialize<'de> for PersistParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PersistParameters
impl PartialEq for PersistParameters
source§fn eq(&self, other: &PersistParameters) -> bool
fn eq(&self, other: &PersistParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RustType<ConfigUpdates> for PersistParameters
impl RustType<ConfigUpdates> for PersistParameters
source§fn into_proto(&self) -> ConfigUpdates
fn into_proto(&self) -> ConfigUpdates
Convert a
Self
into a Proto
value.source§fn from_proto(config_updates: ConfigUpdates) -> Result<Self, TryFromProtoError>
fn from_proto(config_updates: ConfigUpdates) -> Result<Self, TryFromProtoError>
source§impl Serialize for PersistParameters
impl Serialize for PersistParameters
impl Eq for PersistParameters
impl StructuralEq for PersistParameters
impl StructuralPartialEq for PersistParameters
Auto Trait Implementations§
impl RefUnwindSafe for PersistParameters
impl Send for PersistParameters
impl Sync for PersistParameters
impl Unpin for PersistParameters
impl UnwindSafe for PersistParameters
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.