Struct ntex_util::services::shared::SharedService
source · pub struct SharedService<S: Service<R>, R> { /* private fields */ }Expand description
A service that can be checked for readiness by multiple tasks
Implementations§
Trait Implementations§
§type Error = <S as Service<R>>::Error
type Error = <S as Service<R>>::Error
Errors produced by the service when polling readiness or executing call.
source§fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moresource§fn call(&self, req: R) -> Self::Future<'_>
fn call(&self, req: R) -> Self::Future<'_>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
Blanket Implementations§
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service