Struct parity_rpc::v1::ParitySetClient
source · [−]pub struct ParitySetClient<C, M, F = Client> { /* private fields */ }
Expand description
Parity-specific rpc interface for operations altering the settings.
Implementations
sourceimpl<C, M, F> ParitySetClient<C, M, F> where
C: BlockChainClient + 'static,
impl<C, M, F> ParitySetClient<C, M, F> where
C: BlockChainClient + 'static,
Trait Implementations
sourceimpl<C, M, F> ParitySet for ParitySetClient<C, M, F> where
C: BlockChainClient + 'static,
M: MinerService + 'static,
F: Fetch + 'static,
impl<C, M, F> ParitySet for ParitySetClient<C, M, F> where
C: BlockChainClient + 'static,
M: MinerService + 'static,
F: Fetch + 'static,
sourcefn set_min_gas_price(&self, gas_price: U256) -> Result<bool>
fn set_min_gas_price(&self, gas_price: U256) -> Result<bool>
Sets new minimal gas price for mined blocks.
sourcefn set_transactions_limit(&self, _limit: usize) -> Result<bool>
fn set_transactions_limit(&self, _limit: usize) -> Result<bool>
Sets the limits for transaction queue.
sourcefn set_tx_gas_limit(&self, _limit: U256) -> Result<bool>
fn set_tx_gas_limit(&self, _limit: U256) -> Result<bool>
Sets the maximum amount of gas a single transaction may consume.
sourcefn set_gas_floor_target(&self, target: U256) -> Result<bool>
fn set_gas_floor_target(&self, target: U256) -> Result<bool>
Sets new gas floor target for mined blocks.
sourcefn set_gas_ceil_target(&self, target: U256) -> Result<bool>
fn set_gas_ceil_target(&self, target: U256) -> Result<bool>
Sets new gas ceiling target for mined blocks.
sourcefn set_extra_data(&self, extra_data: Bytes) -> Result<bool>
fn set_extra_data(&self, extra_data: Bytes) -> Result<bool>
Sets new extra data for mined blocks.
Sets new author for mined block.
sourcefn set_engine_signer_secret(&self, secret: H256) -> Result<bool>
fn set_engine_signer_secret(&self, secret: H256) -> Result<bool>
Sets the secret of engine signer account.
sourcefn clear_engine_signer(&self) -> Result<bool>
fn clear_engine_signer(&self) -> Result<bool>
Unsets the engine signer account address.
sourcefn add_reserved_peer(&self, peer: String) -> Result<bool>
fn add_reserved_peer(&self, peer: String) -> Result<bool>
Add a reserved peer.
sourcefn remove_reserved_peer(&self, peer: String) -> Result<bool>
fn remove_reserved_peer(&self, peer: String) -> Result<bool>
Remove a reserved peer.
sourcefn drop_non_reserved_peers(&self) -> Result<bool>
fn drop_non_reserved_peers(&self) -> Result<bool>
Drop all non-reserved peers.
sourcefn accept_non_reserved_peers(&self) -> Result<bool>
fn accept_non_reserved_peers(&self) -> Result<bool>
Accept non-reserved peers (default behavior)
sourcefn start_network(&self) -> Result<bool>
fn start_network(&self) -> Result<bool>
Start the network. Read more
sourcefn stop_network(&self) -> Result<bool>
fn stop_network(&self) -> Result<bool>
Stop the network. Read more
sourcefn set_mode(&self, mode: String) -> Result<bool>
fn set_mode(&self, mode: String) -> Result<bool>
Set the mode. Argument must be one of: “active”, “passive”, “dark”, “offline”.
sourcefn set_spec_name(&self, spec_name: String) -> Result<bool>
fn set_spec_name(&self, spec_name: String) -> Result<bool>
Set the network spec. Argument must be one of pre-configured chains or a filename.
sourcefn hash_content(&self, url: String) -> BoxFuture<H256>
fn hash_content(&self, url: String) -> BoxFuture<H256>
Hash a file content under given URL.
sourcefn remove_transaction(&self, hash: H256) -> Result<Option<Transaction>>
fn remove_transaction(&self, hash: H256) -> Result<Option<Transaction>>
Removes transaction from transaction queue.
Makes sense only for transactions that were not propagated to other peers yet
like scheduled transactions or transactions in future.
It might also work for some local transactions with to low gas price
or excessive gas limit that are not accepted by other peers whp.
Returns true
when transaction was removed, false
if it was not found. Read more
sourcefn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Create an IoDelegate
, wiring rpc calls to the trait methods.
Auto Trait Implementations
impl<C, M, F = Client> !RefUnwindSafe for ParitySetClient<C, M, F>
impl<C, M, F> Send for ParitySetClient<C, M, F> where
C: Send + Sync,
F: Send,
M: Send + Sync,
impl<C, M, F> Sync for ParitySetClient<C, M, F> where
C: Send + Sync,
F: Sync,
M: Send + Sync,
impl<C, M, F> Unpin for ParitySetClient<C, M, F> where
F: Unpin,
impl<C, M, F = Client> !UnwindSafe for ParitySetClient<C, M, F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more