Struct aws_smithy_runtime_api::client::interceptors::context::FinalizerInterceptorContextRef
source · pub struct FinalizerInterceptorContextRef<'a, I = Input, O = Output, E = Error> { /* private fields */ }
Expand description
Interceptor context for finalization hooks.
This context is used by the read_after_attempt
and read_after_execution
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> FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> FinalizerInterceptorContextRef<'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 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, O, E> From<&'a InterceptorContext<I, O, E>> for FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> From<&'a InterceptorContext<I, O, E>> for FinalizerInterceptorContextRef<'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 FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !RefUnwindSafe for FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Send for FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Sync for FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Unpin for FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I = Input, O = Output, E = Error> !UnwindSafe for FinalizerInterceptorContextRef<'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.