pub trait Configuration:
Default
+ Send
+ Sync
+ Debug
+ 'static {
const NAME: &'static str;
// Required methods
fn ctx(&self) -> &CfgContext;
fn set_ctx(&mut self, ctx: CfgContext);
}Expand description
A value that can be stored in SharedCfg.
Required Associated Constants§
Required Methods§
Sourcefn ctx(&self) -> &CfgContext
fn ctx(&self) -> &CfgContext
Returns the shared context associated with this value.
Sourcefn set_ctx(&mut self, ctx: CfgContext)
fn set_ctx(&mut self, ctx: CfgContext)
Associates this value with a shared configuration context.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".