pub enum CacheTemplate {
Inline {
bytes: Vec<u8>,
date_offset: Option<usize>,
},
Static {
head: Vec<u8>,
date_offset: Option<usize>,
body: &'static [u8],
},
}Variants§
Implementations§
Source§impl CacheTemplate
impl CacheTemplate
pub fn configure_head(&mut self, emit_date: bool, emit_server: bool)
Auto Trait Implementations§
impl Freeze for CacheTemplate
impl RefUnwindSafe for CacheTemplate
impl Send for CacheTemplate
impl Sync for CacheTemplate
impl Unpin for CacheTemplate
impl UnsafeUnpin for CacheTemplate
impl UnwindSafe for CacheTemplate
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