Skip to main content

HotConfig

Trait HotConfig 

Source
pub trait HotConfig:
    DeserializeOwned
    + Send
    + Sync
    + 'static {
    // Provided method
    fn validate(&self) -> Result<(), String> { ... }
}
Expand description

Trait for hot-reloadable configuration

Provided Methods§

Source

fn validate(&self) -> Result<(), String>

Validate the configuration after loading

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§