Trait ntex_server::ServerConfiguration
source · pub trait ServerConfiguration:
Send
+ Clone
+ 'static {
type Item: Send + 'static;
type Factory: ServiceFactory<Self::Item> + 'static;
// Required method
async fn create(&self) -> Result<Self::Factory, ()>;
// Provided methods
fn paused(&self) { ... }
fn resumed(&self) { ... }
fn terminate(&self) { ... }
async fn stop(&self) { ... }
}
Expand description
Worker service factory.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.
Implementors§
source§impl ServerConfiguration for StreamServer
impl ServerConfiguration for StreamServer
Worker service factory.