pub struct RpcEthereumClient<Rpc: HoprRpcOperations> { /* private fields */ }
Expand description
Instantiation of EthereumClient
using HoprRpcOperations
.
Implementations§
Source§impl<Rpc: HoprRpcOperations> RpcEthereumClient<Rpc>
impl<Rpc: HoprRpcOperations> RpcEthereumClient<Rpc>
pub fn new(rpc: Rpc, cfg: RpcEthereumClientConfig) -> Self
Trait Implementations§
Source§impl<Rpc: Clone + HoprRpcOperations> Clone for RpcEthereumClient<Rpc>
impl<Rpc: Clone + HoprRpcOperations> Clone for RpcEthereumClient<Rpc>
Source§fn clone(&self) -> RpcEthereumClient<Rpc>
fn clone(&self) -> RpcEthereumClient<Rpc>
Returns a duplicate 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<Rpc: Debug + HoprRpcOperations> Debug for RpcEthereumClient<Rpc>
impl<Rpc: Debug + HoprRpcOperations> Debug for RpcEthereumClient<Rpc>
Source§impl<Rpc: HoprRpcOperations + Send + Sync> EthereumClient<TransactionRequest> for RpcEthereumClient<Rpc>
impl<Rpc: HoprRpcOperations + Send + Sync> EthereumClient<TransactionRequest> for RpcEthereumClient<Rpc>
Source§fn post_transaction_and_await_confirmation<'life0, 'async_trait>(
&'life0 self,
tx: TransactionRequest,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post_transaction_and_await_confirmation<'life0, 'async_trait>(
&'life0 self,
tx: TransactionRequest,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Post a transaction and wait for its completion.
The mechanism uses an internal timeout and retry mechanism (set to 3
)
Auto Trait Implementations§
impl<Rpc> Freeze for RpcEthereumClient<Rpc>where
Rpc: Freeze,
impl<Rpc> RefUnwindSafe for RpcEthereumClient<Rpc>where
Rpc: RefUnwindSafe,
impl<Rpc> Send for RpcEthereumClient<Rpc>where
Rpc: Send,
impl<Rpc> Sync for RpcEthereumClient<Rpc>where
Rpc: Sync,
impl<Rpc> Unpin for RpcEthereumClient<Rpc>where
Rpc: Unpin,
impl<Rpc> UnwindSafe for RpcEthereumClient<Rpc>where
Rpc: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more