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§
§impl<'a, I, O, E> FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> FinalizerInterceptorContextRef<'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.
Trait Implementations§
§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>
§fn from(
inner: &'a InterceptorContext<I, O, E>
) -> FinalizerInterceptorContextRef<'a, I, O, E>
fn from( inner: &'a InterceptorContext<I, O, E> ) -> FinalizerInterceptorContextRef<'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 FinalizerInterceptorContextRef<'a, I, O, E>
impl<'a, I, O, E> Send for FinalizerInterceptorContextRef<'a, I, O, E>where E: Sync, I: Sync, O: Sync,
impl<'a, I, O, E> Sync for FinalizerInterceptorContextRef<'a, I, O, E>where E: Sync, I: Sync, O: Sync,
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§
§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