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§
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§
Source§impl ServerConfiguration for StreamServer
Worker service factory.
impl ServerConfiguration for StreamServer
Worker service factory.