pub trait ConfigParser<T> {
// Required methods
fn parse_config<'async_trait>( ) -> Pin<Box<dyn Future<Output = CDnsResult<T>> + Send + 'async_trait>>;
fn get_file_path() -> &'static Path;
fn is_default(&self) -> bool;
}
Required Methods§
fn parse_config<'async_trait>() -> Pin<Box<dyn Future<Output = CDnsResult<T>> + Send + 'async_trait>>
fn get_file_path() -> &'static Path
fn is_default(&self) -> bool
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.