Struct aws_smithy_runtime_api::client::interceptors::context::BeforeTransmitInterceptorContextMut
source · pub struct BeforeTransmitInterceptorContextMut<'a, I = Input, O = Output, E = Error> { /* private fields */ }
client
only.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) -> &HttpRequest
pub fn request(&self) -> &HttpRequest
Returns a reference to the transmittable request for the operation being invoked.
sourcepub fn request_mut(&mut self) -> &mut HttpRequest
pub fn request_mut(&mut self) -> &mut HttpRequest
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.
Trait Implementations§
source§impl<'a, I: Debug, O: Debug, E: Debug> Debug for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I: Debug, O: Debug, E: Debug> Debug for BeforeTransmitInterceptorContextMut<'a, I, O, E>
source§impl<'a, I, O, E> From<&'a mut InterceptorContext<I, O, E>> for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> From<&'a mut InterceptorContext<I, O, E>> for BeforeTransmitInterceptorContextMut<'a, I, O, E>
source§fn from(inner: &'a mut InterceptorContext<I, O, E>) -> Self
fn from(inner: &'a mut InterceptorContext<I, O, E>) -> Self
Auto Trait Implementations§
impl<'a, I, O, E> Freeze for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !RefUnwindSafe for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Send for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Sync for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Unpin for BeforeTransmitInterceptorContextMut<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !UnwindSafe for BeforeTransmitInterceptorContextMut<'a, I, O, E>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more