pub struct EmbeddedFile {
pub path: &'static str,
pub gz: &'static [u8],
}Expand description
One file of the embedded client: the path a browser requests and the gzip bytes the build wrote into the binary.
Fields§
§path: &'static strRequest path relative to the root, forward slashes, no leading
slash: index.html, web.js, snippets/<crate>/inline0.js.
gz: &'static [u8]The file, gzip-compressed at build time with a zeroed timestamp, so the same source bytes embed identically on every build.
Trait Implementations§
Source§impl Clone for EmbeddedFile
impl Clone for EmbeddedFile
impl Copy for EmbeddedFile
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