Trait actix_server::ServiceFactory[][src]

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

Associated Types

type Factory: BaseServiceFactory<Stream, Config = ()>[src]

Loading content...

Required methods

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

Loading content...

Implementors

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

type Factory = T

Loading content...