Skip to main content

LibConfigDefaults

Trait LibConfigDefaults 

Source
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§

Source

fn config_shape(&self) -> ConfigShape

Returns the shape-backed config contract for this library.

Provided Methods§

Source

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".

Implementors§