Struct novax_executor::QueryNetworkExecutor
source · pub struct QueryNetworkExecutor<Proxy: BlockchainProxy> {
pub gateway_url: String,
/* private fields */
}Expand description
A structure to execute smart contract queries on a real blockchain environment via a specified gateway.
This executor utilizes a blockchain proxy to communicate with the blockchain network and execute the queries.
Fields§
§gateway_url: StringThe URL of the gateway to the blockchain network.
Implementations§
source§impl<Proxy: BlockchainProxy> QueryNetworkExecutor<Proxy>
impl<Proxy: BlockchainProxy> QueryNetworkExecutor<Proxy>
Trait Implementations§
source§impl<Proxy: Clone + BlockchainProxy> Clone for QueryNetworkExecutor<Proxy>
impl<Proxy: Clone + BlockchainProxy> Clone for QueryNetworkExecutor<Proxy>
source§fn clone(&self) -> QueryNetworkExecutor<Proxy>
fn clone(&self) -> QueryNetworkExecutor<Proxy>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<Proxy: Debug + BlockchainProxy> Debug for QueryNetworkExecutor<Proxy>
impl<Proxy: Debug + BlockchainProxy> Debug for QueryNetworkExecutor<Proxy>
source§impl<Proxy: BlockchainProxy> QueryExecutor for QueryNetworkExecutor<Proxy>
impl<Proxy: BlockchainProxy> QueryExecutor for QueryNetworkExecutor<Proxy>
source§fn execute<'life0, 'life1, 'async_trait, OutputManaged>(
&'life0 self,
request: &'life1 ScCallStep
) -> Pin<Box<dyn Future<Output = Result<OutputManaged::Native, ExecutorError>> + Send + 'async_trait>>where
OutputManaged: TopDecodeMulti + NativeConvertible + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait, OutputManaged>(
&'life0 self,
request: &'life1 ScCallStep
) -> Pin<Box<dyn Future<Output = Result<OutputManaged::Native, ExecutorError>> + Send + 'async_trait>>where
OutputManaged: TopDecodeMulti + NativeConvertible + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a smart contract query on the real blockchain environment.
This method constructs a VM request from the provided ScCallStep, sends it to the blockchain network
via the blockchain proxy, and processes the result to return it in a native format.
Auto Trait Implementations§
impl<Proxy> CodecFromSelf for QueryNetworkExecutor<Proxy>
impl<Proxy> Freeze for QueryNetworkExecutor<Proxy>
impl<Proxy> RefUnwindSafe for QueryNetworkExecutor<Proxy>
impl<Proxy> Send for QueryNetworkExecutor<Proxy>
impl<Proxy> Sync for QueryNetworkExecutor<Proxy>
impl<Proxy> Unpin for QueryNetworkExecutor<Proxy>
impl<Proxy> UnwindSafe for QueryNetworkExecutor<Proxy>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more