Struct rust_embed_for_web_utils::DynamicFile
source · pub struct DynamicFile { /* private fields */ }
Implementations
sourceimpl DynamicFile
impl DynamicFile
pub fn read_from_fs<P: AsRef<Path>>(path: P) -> Result<Self>
Trait Implementations
sourceimpl Debug for DynamicFile
impl Debug for DynamicFile
sourceimpl EmbedableFile for DynamicFile
impl EmbedableFile for DynamicFile
type Data = Vec<u8, Global>
type Meta = String
sourcefn data_gzip(&self) -> Option<Self::Data>
fn data_gzip(&self) -> Option<Self::Data>
The contents of the file, compressed with gzip. Read more
sourcefn data_br(&self) -> Option<Self::Data>
fn data_br(&self) -> Option<Self::Data>
The contents of the file, compressed with brotli. Read more
sourcefn last_modified(&self) -> Option<Self::Meta>
fn last_modified(&self) -> Option<Self::Meta>
The rfc2822 encoded last modified date.
sourcefn last_modified_timestamp(&self) -> Option<i64>
fn last_modified_timestamp(&self) -> Option<i64>
The timestamp of when the file was last modified.
Auto Trait Implementations
impl RefUnwindSafe for DynamicFile
impl Send for DynamicFile
impl Sync for DynamicFile
impl Unpin for DynamicFile
impl UnwindSafe for DynamicFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more