pub trait AttackService:
Send
+ Sync
+ 'static {
// Required methods
fn report_validator_info<'life0, 'async_trait>(
&'life0 self,
request: Request<ReportValidatorInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReportValidatorInfoResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delay_for_block<'life0, 'async_trait>(
&'life0 self,
request: Request<DelayForBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DelayForBlockResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn report_duty<'life0, 'async_trait>(
&'life0 self,
request: Request<ReportDutyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReportDutyResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn modify_block<'life0, 'async_trait>(
&'life0 self,
request: Request<ModifyBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ModifyBlockResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with AttackServiceServer.
Required Methods§
fn report_validator_info<'life0, 'async_trait>(
&'life0 self,
request: Request<ReportValidatorInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReportValidatorInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delay_for_block<'life0, 'async_trait>(
&'life0 self,
request: Request<DelayForBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DelayForBlockResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn report_duty<'life0, 'async_trait>(
&'life0 self,
request: Request<ReportDutyRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ReportDutyResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn modify_block<'life0, 'async_trait>(
&'life0 self,
request: Request<ModifyBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ModifyBlockResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".