pub struct OneRequestService<S> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for OneRequestService<S>
impl<S: Clone> Clone for OneRequestService<S>
Source§fn clone(&self) -> OneRequestService<S>
fn clone(&self) -> OneRequestService<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> Debug for OneRequestService<S>
impl<S: Debug> Debug for OneRequestService<S>
Source§impl<T, R> Service<R> for OneRequestService<T>where
T: Service<R>,
impl<T, R> Service<R> for OneRequestService<T>where
T: Service<R>,
Source§type Error = <T as Service<R>>::Error
type Error = <T as Service<R>>::Error
Errors produced by the service when polling readiness or executing call.
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
Source§async fn call(
&self,
req: R,
ctx: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: R, ctx: 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<S> !Freeze for OneRequestService<S>
impl<S> !RefUnwindSafe for OneRequestService<S>
impl<S> !Send for OneRequestService<S>
impl<S> !Sync for OneRequestService<S>
impl<S> Unpin for OneRequestService<S>where
S: Unpin,
impl<S> UnwindSafe for OneRequestService<S>where
S: 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