[][src]Trait ntex::server::StreamServiceFactory

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]

Loading content...

Required methods

fn create(&self) -> Self::Factory[src]

Loading content...

Implementors

impl<F, T, I> StreamServiceFactory<I> for F where
    F: Fn() -> T + Send + Clone + 'static,
    T: ServiceFactory<Config = (), Request = I>,
    I: FromStream, 
[src]

type Factory = T

Loading content...