pub struct CDMSCConfig { /* private fields */ }Expand description
Opaque C wrapper structure for DMSCConfig.
Provides C-compatible interface to the unified configuration management system. The configuration object provides type-safe access to configuration values from multiple sources with automatic type conversion and validation.
§Configuration Sources
The configuration system aggregates values from:
- Default values defined in code
- Configuration files (YAML, TOML, JSON)
- Environment variables
- Command-line arguments
- Remote configuration services (etcd, Consul)
§Value Resolution
Configuration values are resolved using precedence order:
- Environment variables (highest priority)
- Command-line arguments
- Remote configuration
- Configuration files
- Default values (lowest priority)
§Type Safety
The configuration system provides type-safe value retrieval:
- get_string(): Retrieve string values
- get_int(): Retrieve integer values with automatic conversion
- get_bool(): Retrieve boolean values
- get_float(): Retrieve floating-point values
- get_list(): Retrieve array values
Invalid type requests return default values or trigger validation errors.
Auto Trait Implementations§
impl Freeze for CDMSCConfig
impl RefUnwindSafe for CDMSCConfig
impl Send for CDMSCConfig
impl Sync for CDMSCConfig
impl Unpin for CDMSCConfig
impl UnwindSafe for CDMSCConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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::RequestSource§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