pub struct ServiceRuntime(/* private fields */);Implementations§
Source§impl ServiceRuntime
impl ServiceRuntime
Sourcepub fn service<T, F>(&self, name: &str, service: F) -> &Selfwhere
F: IntoServiceFactory<T, Io, SharedCfg>,
T: ServiceFactory<Io, SharedCfg> + 'static,
T::Service: 'static,
T::InitError: Debug,
pub fn service<T, F>(&self, name: &str, service: F) -> &Selfwhere
F: IntoServiceFactory<T, Io, SharedCfg>,
T: ServiceFactory<Io, SharedCfg> + 'static,
T::Service: 'static,
T::InitError: Debug,
Register service.
Name of the service must be registered during configuration stage with ServiceConfig::bind() or ServiceConfig::listen() methods.