pub trait Options {
// Required methods
fn bind_config<C: Configuration>(&mut self, config: &C) -> Result<()>;
fn validate(&self) -> Result<()>;
// Provided method
fn bind<C: Configuration>(&mut self, config: &C) -> Result<()> { ... }
}
Expand description
A type which can be bound by configuration.
Required Methods§
Sourcefn bind_config<C: Configuration>(&mut self, config: &C) -> Result<()>
fn bind_config<C: Configuration>(&mut self, config: &C) -> Result<()>
Bind values from configuration - normally not called directly.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.