[][src]Trait actix_server::ServiceFactory

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

Associated Types

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

Loading content...

Required methods

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

Loading content...

Implementors

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

type NewService = T

Loading content...