pub struct ContractView<R> { /* private fields */ }Expand description
A typed read-only contract invocation, prepared but not yet simulated.
Returned by a generated <Iface>Remote proxy for methods declared pure
or readOnly. Awaiting it simulates the method with the caller as
msg.sender and decodes the return as R. Nothing is submitted.
Trait Implementations§
Source§impl<R> Debug for ContractView<R>
impl<R> Debug for ContractView<R>
Source§impl<R> IntoFuture for ContractView<R>
impl<R> IntoFuture for ContractView<R>
Source§type Output = Result<R, TestkitError>
type Output = Result<R, TestkitError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<R, TestkitError>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<R, TestkitError>> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<R> !RefUnwindSafe for ContractView<R>
impl<R> !UnwindSafe for ContractView<R>
impl<R> Freeze for ContractView<R>
impl<R> Send for ContractView<R>
impl<R> Sync for ContractView<R>
impl<R> Unpin for ContractView<R>
impl<R> UnsafeUnpin for ContractView<R>
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