pub struct EmbeddedFile {
pub path: &'static str,
pub content: &'static [u8],
}Expand description
A file embedded in the binary at compile time for static web serving.
Fields§
§path: &'static strRelative path (e.g., “index.html”, “assets/app.js”)
content: &'static [u8]File content bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedFile
impl RefUnwindSafe for EmbeddedFile
impl Send for EmbeddedFile
impl Sync for EmbeddedFile
impl Unpin for EmbeddedFile
impl UnsafeUnpin for EmbeddedFile
impl UnwindSafe for EmbeddedFile
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