pub struct AddResponseHeader { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Clone for AddResponseHeader
impl Clone for AddResponseHeader
Source§fn clone(&self) -> AddResponseHeader
fn clone(&self) -> AddResponseHeader
Returns a duplicate 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 AddResponseHeader
impl Debug for AddResponseHeader
Source§impl Middleware for AddResponseHeader
impl Middleware for AddResponseHeader
Source§fn after<'a>(
&'a self,
_ctx: &'a RequestContext,
_req: &'a Request,
response: Response,
) -> BoxFuture<'a, Response>
fn after<'a>( &'a self, _ctx: &'a RequestContext, _req: &'a Request, response: Response, ) -> BoxFuture<'a, Response>
Called after the handler executes. Read more
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Returns the middleware name for debugging and logging. Read more
Source§fn before<'a>(
&'a self,
_ctx: &'a RequestContext,
_req: &'a mut Request,
) -> BoxFuture<'a, ControlFlow>
fn before<'a>( &'a self, _ctx: &'a RequestContext, _req: &'a mut Request, ) -> BoxFuture<'a, ControlFlow>
Called before the handler executes. Read more
Auto Trait Implementations§
impl Freeze for AddResponseHeader
impl RefUnwindSafe for AddResponseHeader
impl Send for AddResponseHeader
impl Sync for AddResponseHeader
impl Unpin for AddResponseHeader
impl UnwindSafe for AddResponseHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).