Struct ntex_service::dev::FnShutdown
source · pub struct FnShutdown<Req, Err, F> { /* private fields */ }Trait Implementations§
source§impl<Req, Err, F> Clone for FnShutdown<Req, Err, F>where
F: Clone,
impl<Req, Err, F> Clone for FnShutdown<Req, Err, F>where
F: Clone,
source§impl<Req, Err, F> Service<Req> for FnShutdown<Req, Err, F>where
F: FnOnce(),
impl<Req, Err, F> Service<Req> for FnShutdown<Req, Err, F>where
F: FnOnce(),
source§fn call(&self, req: Req) -> Self::Future<'_>
fn call(&self, req: Req) -> Self::Future<'_>
Process the request and return the response asynchronously. Read more
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 moreAuto Trait Implementations§
impl<Req, Err, F> !RefUnwindSafe for FnShutdown<Req, Err, F>
impl<Req, Err, F> Send for FnShutdown<Req, Err, F>where
Err: Send,
F: Send,
Req: Send,
impl<Req, Err, F> !Sync for FnShutdown<Req, Err, F>
impl<Req, Err, F> Unpin for FnShutdown<Req, Err, F>where
Err: Unpin,
F: Unpin,
Req: Unpin,
impl<Req, Err, F> UnwindSafe for FnShutdown<Req, Err, F>where
Err: UnwindSafe,
F: UnwindSafe,
Req: 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