Struct ntex::server::ServiceRuntime [−][src]
pub struct ServiceRuntime(_);
Implementations
Register service.
Name of the service must be registered during configuration stage with ServiceConfig::bind() or ServiceConfig::listen() methods.
pub fn service_in<T, F>(&self, name: &str, pool: PoolId, service: F) where
F: IntoServiceFactory<T, Io>,
T: ServiceFactory<Io> + 'static,
T::Future: 'static,
T::Service: 'static,
T::InitError: Debug,
pub fn service_in<T, F>(&self, name: &str, pool: PoolId, service: F) where
F: IntoServiceFactory<T, Io>,
T: ServiceFactory<Io> + 'static,
T::Future: 'static,
T::Service: 'static,
T::InitError: Debug,
Register service with memory pool.
Name of the service must be registered during configuration stage with ServiceConfig::bind() or ServiceConfig::listen() methods.
Auto Trait Implementations
impl !RefUnwindSafe for ServiceRuntime
impl !Send for ServiceRuntime
impl !Sync for ServiceRuntime
impl Unpin for ServiceRuntime
impl !UnwindSafe for ServiceRuntime
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more