pub trait RuntimeConfigProvider:
Debug
+ Send
+ Sync {
// Required method
fn snapshot(&self) -> Arc<RuntimeConfigSnapshot> ⓘ;
}Expand description
Read access to the current effective configuration for this service.
Reads are cheap and never touch the database; they read the in-memory snapshot maintained by the implementation.
Required Methods§
Sourcefn snapshot(&self) -> Arc<RuntimeConfigSnapshot> ⓘ
fn snapshot(&self) -> Arc<RuntimeConfigSnapshot> ⓘ
The current effective snapshot.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".