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_price: Uint<128, 2>,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: Sync + 'async_trait { ... }
}
Available on crate feature
client
only.Expand description
Client implementation for the MinerApi
RPC API.
Provided Methods§
Sourcefn 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_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.
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.