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§async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Err>
async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Err>
Returns when the service is able to process requests. Read more
Source§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
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls service from the current task. Read more
Auto Trait Implementations§
impl<T, Req, F, R, In, Out, Err> Freeze for Apply<T, Req, F, R, In, Out, Err>where
F: Freeze,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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