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, &'static str>;
// Provided methods
fn pause(&self) { ... }
fn resume(&self) { ... }
fn terminate(&self) { ... }
async fn stop(&self) { ... }
}Expand description
Worker service configuration.
Required Associated Types§
type Item: Send + 'static
type Service: Service<(), Self::Item, Res = (), Error = ()> + 'static
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<St: Clone + 'static> ServerConfiguration for StreamServer<St>
Worker service factory.
impl<St: Clone + 'static> ServerConfiguration for StreamServer<St>
Worker service factory.