pub struct Apply<T, Req, F, In, Out, Err> { /* private fields */ }Expand description
Apply service combinator
Trait Implementations§
Source§impl<T, Req, F, In, Out, Err> Service<In> for Apply<T, Req, F, In, Out, Err>
impl<T, Req, F, In, Out, Err> Service<In> for Apply<T, Req, F, In, Out, Err>
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Err>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Err>
Returns when the service is ready to process requests. Read more
Source§async fn call(
&self,
req: In,
ctx: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: In, ctx: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Processes a request and returns 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 the service from the current async task. Read more
Auto Trait Implementations§
impl<T, Req, F, In, Out, Err> Freeze for Apply<T, Req, F, In, Out, Err>
impl<T, Req, F, In, Out, Err> RefUnwindSafe for Apply<T, Req, F, In, Out, Err>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, Req, F, In, Out, Err> Send for Apply<T, Req, F, In, Out, Err>
impl<T, Req, F, In, Out, Err> Sync for Apply<T, Req, F, In, Out, Err>
impl<T, Req, F, In, Out, Err> Unpin for Apply<T, Req, F, In, Out, Err>
impl<T, Req, F, In, Out, Err> UnsafeUnpin for Apply<T, Req, F, In, Out, Err>where
T: UnsafeUnpin,
F: UnsafeUnpin,
impl<T, Req, F, In, Out, Err> UnwindSafe for Apply<T, Req, F, In, Out, Err>where
T: UnwindSafe,
F: UnwindSafe,
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