pub struct BeforeTransmitInterceptorContextRef<'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> BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> BeforeTransmitInterceptorContextRef<'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 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.
Trait Implementations§
Source§impl<'a, I: Debug, O: Debug, E: Debug> Debug for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I: Debug, O: Debug, E: Debug> Debug for BeforeTransmitInterceptorContextRef<'a, I, O, E>
Source§impl<'a, I, O, E> From<&'a InterceptorContext<I, O, E>> for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> From<&'a InterceptorContext<I, O, E>> for BeforeTransmitInterceptorContextRef<'a, I, O, E>
Source§fn from(inner: &'a InterceptorContext<I, O, E>) -> Self
fn from(inner: &'a InterceptorContext<I, O, E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, I, O, E> Freeze for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !RefUnwindSafe for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Send for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Sync for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Unpin for BeforeTransmitInterceptorContextRef<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !UnwindSafe for BeforeTransmitInterceptorContextRef<'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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.