pub trait Config:
Clone
+ Send
+ Sync {
// Required methods
fn into_composition(self) -> Composition;
fn handle(&self) -> &str;
}
Expand description
A configuration capable of configuring a Server.
Types that implement this trait are intended to have a one-to-one relationship with a Server as specified by Server::Config. The implementation is left intentionally sparse in order to maximize the process of creating a container Composition. The [generate_composition] helper function is provided for creating a Composition from the usual required configuration options.
See also Test.
Required Methods§
fn into_composition(self) -> Composition
fn handle(&self) -> &str
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.