pub struct ServeProductionAssets { /* private fields */ }Expand description
Serve Vite production assets declared by AssetManifest.
Requests whose path starts with the manifest public_path (default /assets/)
are resolved through the manifest and read from root (typically public/assets).
All other requests continue down the middleware stack.
Implementations§
Source§impl ServeProductionAssets
impl ServeProductionAssets
pub fn new(assets: AssetManifest, root: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for ServeProductionAssets
impl Clone for ServeProductionAssets
Source§impl Debug for ServeProductionAssets
impl Debug for ServeProductionAssets
Auto Trait Implementations§
impl Freeze for ServeProductionAssets
impl RefUnwindSafe for ServeProductionAssets
impl Send for ServeProductionAssets
impl Sync for ServeProductionAssets
impl Unpin for ServeProductionAssets
impl UnsafeUnpin for ServeProductionAssets
impl UnwindSafe for ServeProductionAssets
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