pub struct HttpResponseInterceptors { /* private fields */ }Expand description
Ordered response interceptor list with unified application behavior.
Implementations§
Source§impl HttpResponseInterceptors
impl HttpResponseInterceptors
Sourcepub fn push(&mut self, interceptor: HttpResponseInterceptor)
pub fn push(&mut self, interceptor: HttpResponseInterceptor)
Appends one response interceptor.
Sourcepub fn apply(&self, response_meta: &mut HttpResponseMeta) -> HttpResult<()>
pub fn apply(&self, response_meta: &mut HttpResponseMeta) -> HttpResult<()>
Trait Implementations§
Source§impl Clone for HttpResponseInterceptors
impl Clone for HttpResponseInterceptors
Source§fn clone(&self) -> HttpResponseInterceptors
fn clone(&self) -> HttpResponseInterceptors
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 HttpResponseInterceptors
impl Debug for HttpResponseInterceptors
Source§impl Default for HttpResponseInterceptors
impl Default for HttpResponseInterceptors
Source§fn default() -> HttpResponseInterceptors
fn default() -> HttpResponseInterceptors
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpResponseInterceptors
impl !RefUnwindSafe for HttpResponseInterceptors
impl Send for HttpResponseInterceptors
impl Sync for HttpResponseInterceptors
impl Unpin for HttpResponseInterceptors
impl UnsafeUnpin for HttpResponseInterceptors
impl !UnwindSafe for HttpResponseInterceptors
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