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> Debug for FnShutdown<Req, Err, F>
impl<Req, Err, F> Debug for FnShutdown<Req, Err, F>
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§async fn call(&self, req: Req, _: ServiceCtx<'_, Self>) -> Result<Req, Err>
async fn call(&self, req: Req, _: ServiceCtx<'_, Self>) -> Result<Req, Err>
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>
impl<Req, Err, F> !Sync for FnShutdown<Req, Err, F>
impl<Req, Err, F> Unpin for FnShutdown<Req, Err, F>
impl<Req, Err, F> UnwindSafe for FnShutdown<Req, Err, F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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