pub struct StaticFileResponse {
pub resp: Response<Body>,
pub file_path: PathBuf,
}
Expand description
Static file response type with additional data.
Fields§
§resp: Response<Body>
Inner HTTP response.
file_path: PathBuf
The file path of the inner HTTP response.
Auto Trait Implementations§
impl !Freeze for StaticFileResponse
impl !RefUnwindSafe for StaticFileResponse
impl Send for StaticFileResponse
impl Sync for StaticFileResponse
impl Unpin for StaticFileResponse
impl !UnwindSafe for StaticFileResponse
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