pub struct BeforeSerializationInterceptorContextMut<'a, I = Input, O = Output, E = Error> { /* private fields */ }
Expand description
Interceptor context for the modify_before_serialization
hook.
Only the input is available at this point in the operation.
Implementations§
Source§impl<'a, I, O, E> BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> BeforeSerializationInterceptorContextMut<'a, I, O, E>
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, O, E> Debug for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Debug for BeforeSerializationInterceptorContextMut<'a, I, O, E>
Source§impl<'a, I, O, E> From<&'a mut InterceptorContext<I, O, E>> for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> From<&'a mut InterceptorContext<I, O, E>> for BeforeSerializationInterceptorContextMut<'a, I, O, E>
Source§fn from(
inner: &'a mut InterceptorContext<I, O, E>,
) -> BeforeSerializationInterceptorContextMut<'a, I, O, E>
fn from( inner: &'a mut InterceptorContext<I, O, E>, ) -> BeforeSerializationInterceptorContextMut<'a, I, O, E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, I, O, E> Freeze for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !RefUnwindSafe for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Send for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Sync for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Unpin for BeforeSerializationInterceptorContextMut<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !UnwindSafe for BeforeSerializationInterceptorContextMut<'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>
Creates a shared type from an unshared type.