Struct salvo::prelude::CachingHeaders
source · pub struct CachingHeaders(/* private fields */);
Available on crate feature
caching-headers
only.Implementations§
source§impl CachingHeaders
impl CachingHeaders
sourcepub fn new() -> CachingHeaders
pub fn new() -> CachingHeaders
Constructs a new combination modified and etag handler
Trait Implementations§
source§impl Clone for CachingHeaders
impl Clone for CachingHeaders
source§fn clone(&self) -> CachingHeaders
fn clone(&self) -> CachingHeaders
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CachingHeaders
impl Debug for CachingHeaders
source§impl Default for CachingHeaders
impl Default for CachingHeaders
source§fn default() -> CachingHeaders
fn default() -> CachingHeaders
Returns the “default value” for a type. Read more
source§impl Handler for CachingHeaders
impl Handler for CachingHeaders
source§fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
CachingHeaders: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
CachingHeaders: 'async_trait,
Handle http request.
impl Copy for CachingHeaders
Auto Trait Implementations§
impl Freeze for CachingHeaders
impl RefUnwindSafe for CachingHeaders
impl Send for CachingHeaders
impl Sync for CachingHeaders
impl Unpin for CachingHeaders
impl UnwindSafe for CachingHeaders
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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