Struct ajars_web::DoNothingInterceptor
source · [−]pub struct DoNothingInterceptor {}
Expand description
An Interceptor implementation that does not alter the request/response
Trait Implementations
sourceimpl Interceptor for DoNothingInterceptor
impl Interceptor for DoNothingInterceptor
sourcefn before_request(
&self,
uri: String,
opts: RequestInit
) -> Result<(String, RequestInit), Error>
fn before_request(
&self,
uri: String,
opts: RequestInit
) -> Result<(String, RequestInit), Error>
Called before a request is performed
sourcefn after_response(
&self,
response: Result<WebResponse, Error>
) -> Result<WebResponse, Error>
fn after_response(
&self,
response: Result<WebResponse, Error>
) -> Result<WebResponse, Error>
Called after a response is received and before the body is consumed
Auto Trait Implementations
impl RefUnwindSafe for DoNothingInterceptor
impl Send for DoNothingInterceptor
impl Sync for DoNothingInterceptor
impl Unpin for DoNothingInterceptor
impl UnwindSafe for DoNothingInterceptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more