Skip to main content

ConfigCheck

Trait ConfigCheck 

Source
pub trait ConfigCheck: Send + Sync {
    // Required method
    fn check(&self, content: &str) -> Result<(), String>;
}
Expand description

The host’s check of a whole config text before it is written: TOML syntax, environment references and the host’s own config structure.

Required Methods§

Source

fn check(&self, content: &str) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> ConfigCheck for F
where F: Fn(&str) -> Result<(), String> + Send + Sync,

Any Fn(&str) -> Result<(), String> is a check.