WebServerBuilder

Trait WebServerBuilder 

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

Source

type WebServer: Component

The web server component type

Required Methods§

Source

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.

Implementors§