Trait MinerApiClient

pub trait MinerApiClient: ClientT {
    // Provided methods
    fn set_extra<'life0, 'async_trait>(
        &'life0 self,
        record: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
    fn set_gas_price<'life0, 'async_trait>(
        &'life0 self,
        gas_price: Uint<128, 2>,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
    fn set_gas_limit<'life0, 'async_trait>(
        &'life0 self,
        gas_limit: Uint<128, 2>,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: Sync + 'async_trait { ... }
}
Expand description

Client implementation for the MinerApi RPC API.

Provided Methods§

fn set_extra<'life0, 'async_trait>( &'life0 self, record: Bytes, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Sets the extra data string that is included when this miner mines a block.

Returns an error if the extra data is too long.

fn set_gas_price<'life0, 'async_trait>( &'life0 self, gas_price: Uint<128, 2>, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Sets the minimum accepted gas price for the miner.

fn set_gas_limit<'life0, 'async_trait>( &'life0 self, gas_limit: Uint<128, 2>, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: Sync + 'async_trait,

Sets the gaslimit to target towards during mining.

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§

§

impl<TypeJsonRpseeInteral> MinerApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,