[][src]Trait actix_server::ServiceFactory

pub trait ServiceFactory<Stream: FromStream>: Send + Clone + 'static {
    type NewService: NewService<Config = ServerConfig, Request = Io<Stream>>;
    fn create(&self) -> Self::NewService;
}

Associated Types

type NewService: NewService<Config = ServerConfig, Request = Io<Stream>>

Loading content...

Required methods

fn create(&self) -> Self::NewService

Loading content...

Implementors

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

type NewService = T

Loading content...