Trait ConfigParser

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

Source

fn parse_config<'async_trait>() -> Pin<Box<dyn Future<Output = CDnsResult<T>> + Send + 'async_trait>>

Source

fn get_file_path() -> &'static Path

Source

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.

Implementors§