Struct parity_rpc::dispatch::FullDispatcher
source · [−]pub struct FullDispatcher<C, M> { /* private fields */ }
Expand description
A dispatcher which uses references to a client and miner in order to sign requests locally.
Implementations
sourceimpl<C, M> FullDispatcher<C, M>
impl<C, M> FullDispatcher<C, M>
sourceimpl<C: BlockChainClient, M: MinerService> FullDispatcher<C, M>
impl<C: BlockChainClient, M: MinerService> FullDispatcher<C, M>
sourcepub fn dispatch_transaction(
client: &C,
miner: &M,
signed_transaction: PendingTransaction,
trusted: bool
) -> Result<H256>
pub fn dispatch_transaction(
client: &C,
miner: &M,
signed_transaction: PendingTransaction,
trusted: bool
) -> Result<H256>
Post transaction to the network.
If transaction is trusted we are more likely to assume it is coming from a local account.
Trait Implementations
sourceimpl<C, M> Clone for FullDispatcher<C, M>
impl<C, M> Clone for FullDispatcher<C, M>
sourceimpl<C: Debug, M: Debug> Debug for FullDispatcher<C, M>
impl<C: Debug, M: Debug> Debug for FullDispatcher<C, M>
sourceimpl<C: BlockChainClient + BlockChainClient, M: MinerService> Dispatcher for FullDispatcher<C, M>
impl<C: BlockChainClient + BlockChainClient, M: MinerService> Dispatcher for FullDispatcher<C, M>
sourcefn fill_optional_fields(
&self,
request: TransactionRequest,
default_sender: Address,
force_nonce: bool
) -> BoxFuture<FilledTransactionRequest>
fn fill_optional_fields(
&self,
request: TransactionRequest,
default_sender: Address,
force_nonce: bool
) -> BoxFuture<FilledTransactionRequest>
Fill optional fields of a transaction request, fetching gas price but not nonce.
sourcefn sign<P>(
&self,
filled: FilledTransactionRequest,
signer: &Arc<dyn Accounts>,
password: SignWith,
post_sign: P
) -> BoxFuture<P::Item> where
P: PostSign + 'static,
<P::Out as IntoFuture>::Future: Send,
fn sign<P>(
&self,
filled: FilledTransactionRequest,
signer: &Arc<dyn Accounts>,
password: SignWith,
post_sign: P
) -> BoxFuture<P::Item> where
P: PostSign + 'static,
<P::Out as IntoFuture>::Future: Send,
Sign the given transaction request without dispatching, fetching appropriate nonce.
sourcefn enrich(&self, signed_transaction: SignedTransaction) -> RpcRichRawTransaction
fn enrich(&self, signed_transaction: SignedTransaction) -> RpcRichRawTransaction
Converts a SignedTransaction
into RichRawTransaction
sourcefn dispatch_transaction(
&self,
signed_transaction: PendingTransaction
) -> Result<H256>
fn dispatch_transaction(
&self,
signed_transaction: PendingTransaction
) -> Result<H256>
“Dispatch” a local transaction.
Auto Trait Implementations
impl<C, M> !RefUnwindSafe for FullDispatcher<C, M>
impl<C, M> Send for FullDispatcher<C, M> where
C: Send + Sync,
M: Send + Sync,
impl<C, M> Sync for FullDispatcher<C, M> where
C: Send + Sync,
M: Send + Sync,
impl<C, M> Unpin for FullDispatcher<C, M>
impl<C, M> !UnwindSafe for FullDispatcher<C, M>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more