Skip to main content

ActivityInboundInterceptor

Trait ActivityInboundInterceptor 

Source
pub trait ActivityInboundInterceptor:
    Send
    + Sync
    + 'static {
    // Provided method
    fn execute_activity<'a>(
        &'a self,
        input: ExecuteActivityInput,
        next: Next<'a, ExecuteActivityInput, ExecuteActivityOutput<'a>>,
    ) -> ExecuteActivityOutput<'a> { ... }
}
Expand description

Inbound interceptor for activity calls coming from the server.

Must be implemented by inbound activity interceptors.

Provided Methods§

Source

fn execute_activity<'a>( &'a self, input: ExecuteActivityInput, next: Next<'a, ExecuteActivityInput, ExecuteActivityOutput<'a>>, ) -> ExecuteActivityOutput<'a>

Called to invoke the activity.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§