[][src]Struct web3::api::ParitySet

pub struct ParitySet<T> { /* fields omitted */ }

Parity_Set Specific API

Implementations

impl<T: Transport> ParitySet<T>[src]

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Add a reserved peer

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Get list of connected/connecting peers.

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Attempts to upgrade Parity to the version specified in parity_upgradeReady

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Creates a hash of a file at a given URL

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Remove a reserved peer

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Changes author (coinbase) for mined blocks

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sets the network spec file Parity is using

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sets an authority account for signing consensus messages

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Changes extra data for newly mined blocks

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sets new gas ceiling target for mined blocks

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sets a new gas floor target for mined blocks

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Sets the maximum amount of gas a single transaction may consume

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

Changes the operating mode of Parity.

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

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

Notable traits for CallFuture<T, F>

impl<T, F> Future for CallFuture<T, F> where
    T: DeserializeOwned,
    F: Future<Output = Result<Value>>, 
type Output = Result<T>;
[src]

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

Trait Implementations

impl<T: Clone> Clone for ParitySet<T>[src]

impl<T: Debug> Debug for ParitySet<T>[src]

impl<T: Transport> Namespace<T> for ParitySet<T>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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