pub trait LibConfigDefaults {
// Required method
fn config_shape(&self) -> ConfigShape;
// Provided method
fn built_in_config_layer(&self) -> ConfigLayer { ... }
}Expand description
Default configuration contract exposed by a loadable library.
Required Methods§
Sourcefn config_shape(&self) -> ConfigShape
fn config_shape(&self) -> ConfigShape
Returns the shape-backed config contract for this library.
Provided Methods§
Sourcefn built_in_config_layer(&self) -> ConfigLayer
fn built_in_config_layer(&self) -> ConfigLayer
Returns the built-in defaults layer published by this library.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".