Struct aws_smithy_runtime_api::client::interceptors::context::FinalizerInterceptorContextMut
source · pub struct FinalizerInterceptorContextMut<'a, I = Input, O = Output, E = Error> { /* private fields */ }
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.