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§
§impl<'a, I, O, E> FinalizerInterceptorContextMut<'a, I, O, E>
impl<'a, I, O, E> FinalizerInterceptorContextMut<'a, I, O, E>
pub 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.
pub fn request_mut(&mut self) -> Option<&mut Request<SdkBody>>
pub fn request_mut(&mut self) -> Option<&mut Request<SdkBody>>
Mutably returns the serialized request.
pub fn response_mut(&mut self) -> Option<&mut Response<SdkBody>>
pub fn response_mut(&mut self) -> Option<&mut Response<SdkBody>>
Mutably returns the raw response.
pub 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.
Trait Implementations§
§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>
§fn from(
inner: &'a mut InterceptorContext<I, O, E>
) -> FinalizerInterceptorContextMut<'a, I, O, E>
fn from( inner: &'a mut InterceptorContext<I, O, E> ) -> FinalizerInterceptorContextMut<'a, I, O, E>
Converts to this type from the input type.
Auto Trait Implementations§
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>where E: Send, I: Send, O: Send,
impl<'a, I, O, E> Sync for FinalizerInterceptorContextMut<'a, I, O, E>where E: Sync, I: Sync, O: Sync,
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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