pub struct BoxService<Req, Res, Err>(/* private fields */);
Trait Implementations§
Source§impl<Req, Res, Err> Debug for BoxService<Req, Res, Err>
impl<Req, Res, Err> Debug for BoxService<Req, Res, Err>
Source§impl<Req, Res, Err> Service<Req> for BoxService<Req, Res, Err>where
Req: 'static,
impl<Req, Res, Err> Service<Req> for BoxService<Req, Res, Err>where
Req: 'static,
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: Req, ctx: ServiceCtx<'_, Self>) -> Result<Res, Err>
async fn call(&self, req: Req, ctx: ServiceCtx<'_, Self>) -> Result<Res, Err>
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<Req, Res, Err> Freeze for BoxService<Req, Res, Err>
impl<Req, Res, Err> !RefUnwindSafe for BoxService<Req, Res, Err>
impl<Req, Res, Err> !Send for BoxService<Req, Res, Err>
impl<Req, Res, Err> !Sync for BoxService<Req, Res, Err>
impl<Req, Res, Err> Unpin for BoxService<Req, Res, Err>
impl<Req, Res, Err> !UnwindSafe for BoxService<Req, Res, 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<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