Skip to main content

AttackService

Trait AttackService 

Source
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§

Source

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,

Source

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,

Source

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,

Source

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".

Implementors§