Struct hedera::EthereumFlow
source · pub struct EthereumFlow { /* private fields */ }
Expand description
Flow for executing ethereum transactions.
Implementations§
source§impl EthereumFlow
impl EthereumFlow
sourcepub fn get_ethereum_data(&self) -> Option<&EthereumData>
pub fn get_ethereum_data(&self) -> Option<&EthereumData>
Returns the raw Ethereum transaction (RLP encoded type 0, 1, and 2).
sourcepub fn ethereum_data(&mut self, data: &[u8]) -> Result<&mut Self>
pub fn ethereum_data(&mut self, data: &[u8]) -> Result<&mut Self>
Sets the raw Ethereum transaction data (RLP encoded type 0, 1, and 2).
§Errors
Error::BasicParse
if the givendata
cannot be parsed asEthereumData
.
sourcepub fn get_max_gas_allowance(&self) -> Option<Hbar>
pub fn get_max_gas_allowance(&self) -> Option<Hbar>
Returns the maximum amount that the payer of the hedera transaction is willing to pay to complete the transaction.
sourcepub fn max_gas_allowance(&mut self, hbar: Hbar) -> &mut Self
pub fn max_gas_allowance(&mut self, hbar: Hbar) -> &mut Self
Sets the maximum amount that the payer of the ethereum transaction is willing to pay to complete the transaction.
sourcepub async fn execute(&self, client: &Client) -> Result<TransactionResponse>
pub async fn execute(&self, client: &Client) -> Result<TransactionResponse>
Generates the required transactions and executes them all.
sourcepub async fn execute_with_timeout(
&self,
client: &Client,
timeout_per_transaction: Duration,
) -> Result<TransactionResponse>
pub async fn execute_with_timeout( &self, client: &Client, timeout_per_transaction: Duration, ) -> Result<TransactionResponse>
Generates the required transactions and executes them all.
Trait Implementations§
source§impl Debug for EthereumFlow
impl Debug for EthereumFlow
source§impl Default for EthereumFlow
impl Default for EthereumFlow
source§fn default() -> EthereumFlow
fn default() -> EthereumFlow
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EthereumFlow
impl RefUnwindSafe for EthereumFlow
impl Send for EthereumFlow
impl Sync for EthereumFlow
impl Unpin for EthereumFlow
impl UnwindSafe for EthereumFlow
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request