pub struct PipelineSvc<S> { /* private fields */ }Expand description
Service wrapper for Pipeline
Implementations§
Source§impl<S> PipelineSvc<S>
impl<S> PipelineSvc<S>
Sourcepub fn new(inner: Pipeline<S>) -> PipelineSvc<S>
pub fn new(inner: Pipeline<S>) -> PipelineSvc<S>
Construct new PipelineSvc
Trait Implementations§
Source§impl<S> Clone for PipelineSvc<S>
impl<S> Clone for PipelineSvc<S>
Source§fn clone(&self) -> PipelineSvc<S>
fn clone(&self) -> PipelineSvc<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for PipelineSvc<S>where
S: Debug,
impl<S> Debug for PipelineSvc<S>where
S: Debug,
Source§impl<S> From<S> for PipelineSvc<S>
impl<S> From<S> for PipelineSvc<S>
Source§fn from(svc: S) -> PipelineSvc<S>
fn from(svc: S) -> PipelineSvc<S>
Converts to this type from the input type.
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<'_, PipelineSvc<S>>,
) -> Result<<PipelineSvc<S> as Service<Req>>::Response, <PipelineSvc<S> as Service<Req>>::Error>
async fn call( &self, req: Req, _: ServiceCtx<'_, PipelineSvc<S>>, ) -> Result<<PipelineSvc<S> as Service<Req>>::Response, <PipelineSvc<S> as Service<Req>>::Error>
Processes a request and returns the response asynchronously. Read more
Source§async fn ready(
&self,
_: ServiceCtx<'_, PipelineSvc<S>>,
) -> Result<(), <PipelineSvc<S> as Service<Req>>::Error>
async fn ready( &self, _: ServiceCtx<'_, PipelineSvc<S>>, ) -> Result<(), <PipelineSvc<S> as Service<Req>>::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <PipelineSvc<S> as Service<Req>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <PipelineSvc<S> as Service<Req>>::Error>
Polls the service from the current async 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> UnsafeUnpin for PipelineSvc<S>
impl<S> !UnwindSafe for PipelineSvc<S>
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