pub struct StaticFile { /* private fields */ }Expand description
Static file response
Implementations§
Source§impl StaticFile
impl StaticFile
Sourcepub fn new(path: impl Into<PathBuf>, config: StaticFileConfig) -> StaticFile
pub fn new(path: impl Into<PathBuf>, config: StaticFileConfig) -> StaticFile
Create a new static file response
Auto Trait Implementations§
impl Freeze for StaticFile
impl RefUnwindSafe for StaticFile
impl Send for StaticFile
impl Sync for StaticFile
impl Unpin for StaticFile
impl UnwindSafe for StaticFile
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