pub struct CWebFile<'a> {
pub mime: &'a CStr,
pub etag: &'a CStr,
pub last_modified: &'a CStr,
pub immutable: bool,
pub body: &'a [u8],
}Expand description
File data with HTTP cache-related metadata.
Fields§
§mime: &'a CStrMIME type essence
etag: &'a CStrETag value
last_modified: &'a CStrLast-Modified date
immutable: boolWhether this file is immutable
body: &'a [u8]File content
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CWebFile<'a>
impl<'a> RefUnwindSafe for CWebFile<'a>
impl<'a> Send for CWebFile<'a>
impl<'a> Sync for CWebFile<'a>
impl<'a> Unpin for CWebFile<'a>
impl<'a> UnwindSafe for CWebFile<'a>
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