pub trait ConfigurationAdapter {
// Required method
fn load_configuration(
&self,
path: &Path,
) -> Result<Vec<ServerConfiguration>, Box<dyn Error + Send + Sync>>;
}
Expand description
A trait defining a Ferron server configuration file adapter
Required Methods§
Sourcefn load_configuration(
&self,
path: &Path,
) -> Result<Vec<ServerConfiguration>, Box<dyn Error + Send + Sync>>
fn load_configuration( &self, path: &Path, ) -> Result<Vec<ServerConfiguration>, Box<dyn Error + Send + Sync>>
Loads a server configuration for processing from the file specified by the path