pub trait ResponseSender<T: EigenTask, R: TaskResponse>:
    Send
    + Sync
    + Clone
    + 'static {
    type Future: Future<Output = Result<()>> + Send + 'static;

    // Required method
    fn send_aggregated_response(
        &self,
        task: &T,
        response: &R,
        aggregation_result: BlsAggregationServiceResponse,
    ) -> Self::Future;
}
Expand description

Trait for sending aggregated responses to EigenLayer contracts

Required Associated Types§

Source

type Future: Future<Output = Result<()>> + Send + 'static

Future type returned by send_aggregated_response

Required Methods§

Source

fn send_aggregated_response( &self, task: &T, response: &R, aggregation_result: BlsAggregationServiceResponse, ) -> Self::Future

Send an aggregated response to the contract

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

OSZAR »