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§
Required Methods§
Sourcefn send_aggregated_response(
&self,
task: &T,
response: &R,
aggregation_result: BlsAggregationServiceResponse,
) -> Self::Future
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.