pub struct AttackClient { /* private fields */ }Implementations§
Source§impl AttackClient
impl AttackClient
pub async fn connect(endpoint: &str) -> Result<Self, Box<dyn Error>>
pub async fn report_validator_info( &mut self, request: ReportValidatorInfoRequest, ) -> Result<Response<ReportValidatorInfoResponse>, Status>
pub async fn delay_for_block( &mut self, request: DelayForBlockRequest, ) -> Result<Response<DelayForBlockResponse>, Status>
pub async fn report_duty( &mut self, request: ReportDutyRequest, ) -> Result<Response<ReportDutyResponse>, Status>
pub async fn modify_block( &mut self, request: ModifyBlockRequest, ) -> Result<Response<ModifyBlockResponse>, Status>
Auto Trait Implementations§
impl !Freeze for AttackClient
impl !RefUnwindSafe for AttackClient
impl !UnwindSafe for AttackClient
impl Send for AttackClient
impl Sync for AttackClient
impl Unpin for AttackClient
impl UnsafeUnpin for AttackClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request