pub struct FilesService<Err: ErrorRenderer> { /* private fields */ }Trait Implementations§
Source§impl<Err> Service<WebRequest<Err>> for FilesService<Err>
impl<Err> Service<WebRequest<Err>> for FilesService<Err>
Source§type Response = WebResponse
type Response = WebResponse
Responses given by the service.
Source§type Error = <Err as ErrorRenderer>::Container
type Error = <Err as ErrorRenderer>::Container
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
req: WebRequest<Err>,
ctx: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: WebRequest<Err>, ctx: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
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§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<Err> Freeze for FilesService<Err>
impl<Err> !RefUnwindSafe for FilesService<Err>
impl<Err> !Send for FilesService<Err>
impl<Err> !Sync for FilesService<Err>
impl<Err> Unpin for FilesService<Err>
impl<Err> !UnwindSafe for FilesService<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