pub struct RuntimeConfigState { /* private fields */ }Expand description
Configuration layers discovered during a boot session.
Implementations§
Source§impl RuntimeConfigState
impl RuntimeConfigState
Sourcepub fn layers(&self) -> &[ConfigLayer]
pub fn layers(&self) -> &[ConfigLayer]
Returns the discovered layers in merge order.
Sourcepub fn effective(&self) -> &EffectiveConfig
pub fn effective(&self) -> &EffectiveConfig
Returns the effective config after all discovered layers are merged.
Sourcepub fn source_reports(&self) -> &[ConfigSourceReport]
pub fn source_reports(&self) -> &[ConfigSourceReport]
Returns source status records in discovery order.
Sourcepub fn secret_fields(&self) -> &[ConfigSecretField]
pub fn secret_fields(&self) -> &[ConfigSecretField]
Returns config fields that must be redacted in reports.
Sourcepub fn probe_reports(&self) -> &[ConfigProbeReport]
pub fn probe_reports(&self) -> &[ConfigProbeReport]
Returns typed probe report records in discovery order.
Sourcepub fn diagnostics(&self) -> &[String]
pub fn diagnostics(&self) -> &[String]
Returns non-fatal discovery diagnostics.
Sourcepub fn push_layer(&mut self, layer: ConfigLayer)
pub fn push_layer(&mut self, layer: ConfigLayer)
Adds a layer and recomputes the effective config.
Sourcepub fn extend_secret_fields(
&mut self,
fields: impl IntoIterator<Item = ConfigSecretField>,
)
pub fn extend_secret_fields( &mut self, fields: impl IntoIterator<Item = ConfigSecretField>, )
Adds or replaces shape-derived secret field metadata.
Sourcepub fn push_probe_report(&mut self, report: ConfigProbeReport)
pub fn push_probe_report(&mut self, report: ConfigProbeReport)
Adds a typed probe report record.
Sourcepub fn push_source_report(&mut self, source: ConfigSource, status: SourceStatus)
pub fn push_source_report(&mut self, source: ConfigSource, status: SourceStatus)
Adds a source status record.
Trait Implementations§
Source§impl Clone for RuntimeConfigState
impl Clone for RuntimeConfigState
Source§fn clone(&self) -> RuntimeConfigState
fn clone(&self) -> RuntimeConfigState
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 RuntimeConfigState
impl Debug for RuntimeConfigState
Source§impl Default for RuntimeConfigState
impl Default for RuntimeConfigState
Source§fn default() -> RuntimeConfigState
fn default() -> RuntimeConfigState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfigState
impl RefUnwindSafe for RuntimeConfigState
impl Send for RuntimeConfigState
impl Sync for RuntimeConfigState
impl Unpin for RuntimeConfigState
impl UnsafeUnpin for RuntimeConfigState
impl UnwindSafe for RuntimeConfigState
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