pub struct PipelineSvc<S> { /* private fields */ }Expand description
Service wrapper for Pipeline
Implementations§
Trait Implementations§
Source§impl<S> Clone for PipelineSvc<S>
impl<S> Clone for PipelineSvc<S>
Source§impl<S: Debug> Debug for PipelineSvc<S>
impl<S: Debug> Debug for PipelineSvc<S>
Source§impl<S> From<S> for PipelineSvc<S>
impl<S> From<S> for PipelineSvc<S>
Source§impl<S, R> IntoService<PipelineSvc<S>, R> for Pipeline<S>where
S: Service<R>,
impl<S, R> IntoService<PipelineSvc<S>, R> for Pipeline<S>where
S: Service<R>,
Source§fn into_service(self) -> PipelineSvc<S>
fn into_service(self) -> PipelineSvc<S>
Convert to a
ServiceSource§impl<S, Req> Service<Req> for PipelineSvc<S>where
S: Service<Req>,
impl<S, Req> Service<Req> for PipelineSvc<S>where
S: Service<Req>,
Source§type Error = <S as Service<Req>>::Error
type Error = <S as Service<Req>>::Error
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
req: Req,
_: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: Req, _: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Source§async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. 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<S> Freeze for PipelineSvc<S>
impl<S> !RefUnwindSafe for PipelineSvc<S>
impl<S> !Send for PipelineSvc<S>
impl<S> !Sync for PipelineSvc<S>
impl<S> Unpin for PipelineSvc<S>
impl<S> !UnwindSafe for PipelineSvc<S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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