pub struct MethodTx<A, R> { /* private fields */ }
Implementations§
Source§impl<A, R> MethodTx<A, R>
impl<A, R> MethodTx<A, R>
pub fn to(self, to: impl Into<NameOrAddress>) -> Self
pub fn from(self, from: Address) -> Self
pub async fn call<M: Middleware>( self, provider: &M, block: Option<BlockId>, ) -> Result<R, Error<M>>
pub async fn estimate_gas<M: Middleware>(
self,
provider: &M,
block: Option<BlockId>,
) -> Result<U256, Error<M>>where
A: AbiEncode,
Trait Implementations§
Auto Trait Implementations§
impl<A, R> !Freeze for MethodTx<A, R>
impl<A, R> RefUnwindSafe for MethodTx<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R> Send for MethodTx<A, R>
impl<A, R> Sync for MethodTx<A, R>
impl<A, R> Unpin for MethodTx<A, R>
impl<A, R> UnwindSafe for MethodTx<A, R>where
A: UnwindSafe,
R: 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