Struct ntex_util::services::keepalive::KeepAliveService
source · pub struct KeepAliveService<R, E, F> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<R, E, F> Service<R> for KeepAliveService<R, E, F>where
F: Fn() -> E,
impl<R, E, F> Service<R> for KeepAliveService<R, E, F>where F: Fn() -> E,
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§
impl<R, E, F> !RefUnwindSafe for KeepAliveService<R, E, F>
impl<R, E, F> Send for KeepAliveService<R, E, F>where E: Send, F: Send, R: Send,
impl<R, E, F> !Sync for KeepAliveService<R, E, F>
impl<R, E, F> Unpin for KeepAliveService<R, E, F>where E: Unpin, F: Unpin, R: Unpin,
impl<R, E, F> UnwindSafe for KeepAliveService<R, E, F>where E: UnwindSafe, F: UnwindSafe, R: UnwindSafe,
Blanket Implementations§
source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service