pub struct FinalizerInterceptorContextMut<'a, I = Input, O = Output, E = Error> { /* private fields */ }
client
only.Expand description
Interceptor context for finalization hooks.
This context is used by the modify_before_attempt_completion
and modify_before_completion
hooks
that are all called upon both success and failure, and may have varying levels
of context available depending on where a failure occurred if the operation failed.
Implementations§
Source§impl<'a, I, O, E> FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> FinalizerInterceptorContextMut<'a, I, O, E>
Sourcepub fn request(&self) -> Option<&HttpRequest>
pub fn request(&self) -> Option<&HttpRequest>
Returns the serialized request.
Sourcepub fn response(&self) -> Option<&HttpResponse>
pub fn response(&self) -> Option<&HttpResponse>
Returns the raw response.
Sourcepub fn output_or_error(&self) -> Option<Result<&O, &OrchestratorError<E>>>
pub fn output_or_error(&self) -> Option<Result<&O, &OrchestratorError<E>>>
Returns the deserialized operation output or error.
Sourcepub fn request_mut(&mut self) -> Option<&mut HttpRequest>
pub fn request_mut(&mut self) -> Option<&mut HttpRequest>
Mutably returns the serialized request.
Sourcepub fn response_mut(&mut self) -> Option<&mut HttpResponse>
pub fn response_mut(&mut self) -> Option<&mut HttpResponse>
Mutably returns the raw response.
Sourcepub fn output_or_error_mut(
&mut self,
) -> Option<&mut Result<O, OrchestratorError<E>>>
pub fn output_or_error_mut( &mut self, ) -> Option<&mut Result<O, OrchestratorError<E>>>
Mutably returns the deserialized operation output or error.
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> From<&'a mut InterceptorContext<I, O, E>> for FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> From<&'a mut InterceptorContext<I, O, E>> for FinalizerInterceptorContextMut<'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 FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !RefUnwindSafe for FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Send for FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Sync for FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> Unpin for FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !UnwindSafe for FinalizerInterceptorContextMut<'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
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>
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