Trait ntex::server::StreamServiceFactory [−][src]
pub trait StreamServiceFactory<Stream: FromStream>: Send + Clone + 'static { type Factory: ServiceFactory<Config = (), Request = Stream>; fn create(&self) -> Self::Factory; }
Associated Types
type Factory: ServiceFactory<Config = (), Request = Stream>
[src]
Required methods
Implementors
impl<F, T, I> StreamServiceFactory<I> for F where
F: Fn() -> T + Send + Clone + 'static,
T: ServiceFactory<Config = (), Request = I>,
I: FromStream,
[src]
impl<F, T, I> StreamServiceFactory<I> for F where
F: Fn() -> T + Send + Clone + 'static,
T: ServiceFactory<Config = (), Request = I>,
I: FromStream,
[src]