pub trait WebServerBuilder<State>: Send {
type WebServer: Component;
// Required method
fn build_web_server(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::WebServer>> + Send;
}Expand description
Builder for web server components
Required Associated Types§
Required Methods§
Sourcefn build_web_server(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::WebServer>> + Send
fn build_web_server( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::WebServer>> + Send
Build the web server component
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.