Struct ntex_files::FilesService
source · 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>
§type Response = WebResponse
type Response = WebResponse
Responses given by the service.
§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
§fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moreAuto Trait Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service