Trait ConfigParser

Source
pub trait ConfigParser: Sized {
    // Required method
    fn parse() -> impl Future<Output = Result<Self>>;
}
Expand description

This trait is used to parse a configuration for the application.

The avoid having to manually implement this trait, the bootstrap! macro in the [scuffle-settings] crate can be used to generate an implementation.

§See Also

Required Methods§

Source

fn parse() -> impl Future<Output = Result<Self>>

Parse the configuration for the application.

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.

Implementations on Foreign Types§

Source§

impl ConfigParser for ()

Source§

fn parse() -> impl Future<Output = Result<Self>>

Implementors§