pub struct ServeFile { /* private fields */ }Expand description
Service that serves a file.
Implementations§
Trait Implementations§
Source§impl<R> Service<R> for ServeFile
impl<R> Service<R> for ServeFile
Source§type Response = Response<ResponseBody>
type Response = Response<ResponseBody>
Responses given by the service.
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = ResponseFuture
type Future = ResponseFuture
The future response value.
Auto Trait Implementations§
impl !Freeze for ServeFile
impl RefUnwindSafe for ServeFile
impl Send for ServeFile
impl Sync for ServeFile
impl Unpin for ServeFile
impl UnwindSafe for ServeFile
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