Struct ntex_service::dev::Apply
source · pub struct Apply<T, Req, F, R, In, Out, Err>where
T: Service<Req>,{ /* private fields */ }
Expand description
Apply
service combinator
Trait Implementations§
source§impl<T, Req, F, R, In, Out, Err> Service<In> for Apply<T, Req, F, R, In, Out, Err>
impl<T, Req, F, R, In, Out, Err> Service<In> for Apply<T, Req, F, R, In, Out, Err>
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§async fn call(
&self,
req: In,
_: ServiceCtx<'_, Self>
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: In, _: ServiceCtx<'_, Self> ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<T, Req, F, R, In, Out, Err> !RefUnwindSafe for Apply<T, Req, F, R, In, Out, Err>
impl<T, Req, F, R, In, Out, Err> !Send for Apply<T, Req, F, R, In, Out, Err>
impl<T, Req, F, R, In, Out, Err> !Sync for Apply<T, Req, F, R, In, Out, Err>
impl<T, Req, F, R, In, Out, Err> Unpin for Apply<T, Req, F, R, In, Out, Err>where
F: Unpin,
impl<T, Req, F, R, In, Out, Err> !UnwindSafe for Apply<T, Req, F, R, In, Out, Err>
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