Struct ntex::server::ServiceRuntime [−][src]
pub struct ServiceRuntime(_);
Implementations
impl ServiceRuntime
[src]
impl ServiceRuntime
[src]pub fn service<T, F>(&self, name: &str, service: F) where
F: IntoServiceFactory<T>,
T: ServiceFactory<Config = (), Request = TcpStream> + 'static,
T::Future: 'static,
T::Service: 'static,
T::InitError: Debug,
[src]
pub fn service<T, F>(&self, name: &str, service: F) where
F: IntoServiceFactory<T>,
T: ServiceFactory<Config = (), Request = TcpStream> + 'static,
T::Future: 'static,
T::Service: 'static,
T::InitError: Debug,
[src]Register service.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self