pub struct BeforeTransmitInterceptorContextMut<'a, I = Input, O = Output, E = Error> { /* private fields */ }
Expand description
Interceptor context for several hooks in between serialization and transmission.
Only the request is available at this point in the operation.
Implementations§
source§impl<'a, I, O, E> BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> BeforeTransmitInterceptorContextMut<'a, I, O, E>
sourcepub fn request(&self) -> &Request
pub fn request(&self) -> &Request
Returns a reference to the transmittable request for the operation being invoked.
sourcepub fn request_mut(&mut self) -> &mut Request
pub fn request_mut(&mut self) -> &mut Request
Returns a mutable reference to the transmittable request for the operation being invoked.
sourcepub fn inner(&self) -> &InterceptorContext<I, O, E>
pub fn inner(&self) -> &InterceptorContext<I, O, E>
Downgrade this wrapper struct, returning the underlying InterceptorContext.
There’s no good reason to use this unless you’re writing tests or you have to interact with an API that doesn’t support the context wrapper structs.
sourcepub fn inner_mut(&mut self) -> &mut InterceptorContext<I, O, E>
pub fn inner_mut(&mut self) -> &mut InterceptorContext<I, O, E>
Downgrade this wrapper struct, returning the underlying InterceptorContext.
There’s no good reason to use this unless you’re writing tests or you have to interact with an API that doesn’t support the context wrapper structs.