pub trait ServerConfiguration:
Send
+ Clone
+ 'static {
type Item: Send + 'static;
type Service: Service<(), Self::Item, Res = (), Error = ()> + 'static;
// Required method
async fn create(&self) -> Result<Self::Service>;
// Provided methods
fn pause(&self) { ... }
fn resume(&self) { ... }
fn terminate(&self) { ... }
async fn stop(&self) { ... }
}Expand description
Worker service configuration.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<Cfg: ServerAppConfig> ServerConfiguration for StreamServer<Cfg>
Worker service factory.
impl<Cfg: ServerAppConfig> ServerConfiguration for StreamServer<Cfg>
Worker service factory.