ic_web3_rs::api

Struct ParitySet

Source
pub struct ParitySet<T> { /* private fields */ }
Expand description

Parity_Set Specific API

Implementations§

Source§

impl<T: Transport> ParitySet<T>

Source

pub fn accept_non_reserved_peers( &self, options: CallOptions, ) -> CallFuture<bool, T::Out>

Set Parity to accept non-reserved peers (default behavior)

Source

pub fn add_reserved_peer( &self, enode: &str, options: CallOptions, ) -> CallFuture<bool, T::Out>

Add a reserved peer

Source

pub fn drop_non_reserved_peers( &self, options: CallOptions, ) -> CallFuture<bool, T::Out>

Set Parity to drop all non-reserved peers. To restore default behavior call parity_acceptNonReservedPeers

Source

pub fn parity_net_peers( &self, options: CallOptions, ) -> CallFuture<ParityPeerType, T::Out>

Get list of connected/connecting peers.

Source

pub fn execute_upgrade(&self, options: CallOptions) -> CallFuture<bool, T::Out>

Attempts to upgrade Parity to the version specified in parity_upgradeReady

Source

pub fn hash_content( &self, url: &str, options: CallOptions, ) -> CallFuture<H256, T::Out>

Creates a hash of a file at a given URL

Source

pub fn remove_reserved_peer( &self, enode: &str, options: CallOptions, ) -> CallFuture<bool, T::Out>

Remove a reserved peer

Source

pub fn set_author( &self, author: &Address, options: CallOptions, ) -> CallFuture<bool, T::Out>

Changes author (coinbase) for mined blocks

Source

pub fn set_chain( &self, chain: &str, options: CallOptions, ) -> CallFuture<bool, T::Out>

Sets the network spec file Parity is using

Source

pub fn set_engine_signer( &self, address: &Address, password: &str, options: CallOptions, ) -> CallFuture<bool, T::Out>

Sets an authority account for signing consensus messages

Source

pub fn set_extra_data( &self, data: &H256, options: CallOptions, ) -> CallFuture<bool, T::Out>

Changes extra data for newly mined blocks

Source

pub fn set_gas_ceil_target( &self, quantity: &H256, options: CallOptions, ) -> CallFuture<bool, T::Out>

Sets new gas ceiling target for mined blocks

Source

pub fn set_gas_floor_target( &self, quantity: &H256, options: CallOptions, ) -> CallFuture<bool, T::Out>

Sets a new gas floor target for mined blocks

Source

pub fn set_max_transaction_gas( &self, quantity: &H256, options: CallOptions, ) -> CallFuture<bool, T::Out>

Sets the maximum amount of gas a single transaction may consume

Source

pub fn set_min_gas_price( &self, quantity: &H256, options: CallOptions, ) -> CallFuture<bool, T::Out>

Changes minimal gas price for transaction to be accepted to the queue

Source

pub fn set_mode( &self, mode: &str, options: CallOptions, ) -> CallFuture<bool, T::Out>

Changes the operating mode of Parity.

Source

pub fn set_transactions_limit( &self, limit: &H256, options: CallOptions, ) -> CallFuture<bool, T::Out>

Changes limit for transactions in queue. (NOT WORKING !)

Source

pub fn upgrade_ready( &self, options: CallOptions, ) -> CallFuture<Option<String>, T::Out>

Returns a ReleaseInfo object describing the release which is available for upgrade or null if none is available.

Trait Implementations§

Source§

impl<T: Clone> Clone for ParitySet<T>

Source§

fn clone(&self) -> ParitySet<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for ParitySet<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Transport> Namespace<T> for ParitySet<T>

Source§

fn new(transport: T) -> Self

Creates new API namespace
Source§

fn transport(&self) -> &T

Borrows a transport.

Auto Trait Implementations§

§

impl<T> Freeze for ParitySet<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for ParitySet<T>
where T: RefUnwindSafe,

§

impl<T> Send for ParitySet<T>
where T: Send,

§

impl<T> Sync for ParitySet<T>
where T: Sync,

§

impl<T> Unpin for ParitySet<T>
where T: Unpin,

§

impl<T> UnwindSafe for ParitySet<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V