pub struct StaticMount {
pub mount_path: String,
pub mode: MountMode,
pub dir: PathBuf,
pub cache_control: String,
pub error_pages: HashMap<u16, PathBuf>,
pub serve_dir: ServeDir,
}Fields§
§mount_path: String§mode: MountMode§dir: PathBuf§cache_control: String§error_pages: HashMap<u16, PathBuf>§serve_dir: ServeDirTrait Implementations§
Auto Trait Implementations§
impl !Freeze for StaticMount
impl RefUnwindSafe for StaticMount
impl Send for StaticMount
impl Sync for StaticMount
impl Unpin for StaticMount
impl UnsafeUnpin for StaticMount
impl UnwindSafe for StaticMount
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