Struct ink_env::call::CallParams[][src]

pub struct CallParams<E, Args, R> where
    E: Environment
{ /* fields omitted */ }

The final parameters to the cross-contract call.

Implementations

impl<E, Args> CallParams<E, Args, ()> where
    E: Environment,
    Args: Encode
[src]

pub fn invoke(&self) -> Result<(), Error>[src]

Invokes the contract with the given built-up call parameters.

Note

Prefer invoke over eval if the called contract message does not return anything because it is more efficient.

impl<E, Args, R> CallParams<E, Args, ReturnType<R>> where
    E: Environment,
    Args: Encode,
    R: Decode
[src]

pub fn eval(&self) -> Result<R, Error>[src]

Evaluates the contract with the given built-up call parameters.

Returns the result of the contract execution.

Note

Prefer invoke over eval if the called contract message does not return anything because it is more efficient.

Trait Implementations

impl<E: Debug, Args: Debug, R: Debug> Debug for CallParams<E, Args, R> where
    E: Environment,
    E::AccountId: Debug,
    E::Balance: Debug
[src]

Auto Trait Implementations

impl<E, Args, R> RefUnwindSafe for CallParams<E, Args, R> where
    Args: RefUnwindSafe,
    <E as Environment>::AccountId: RefUnwindSafe,
    <E as Environment>::Balance: RefUnwindSafe

impl<E, Args, R> Send for CallParams<E, Args, R> where
    Args: Send,
    <E as Environment>::AccountId: Send,
    <E as Environment>::Balance: Send

impl<E, Args, R> Sync for CallParams<E, Args, R> where
    Args: Sync,
    <E as Environment>::AccountId: Sync,
    <E as Environment>::Balance: Sync

impl<E, Args, R> Unpin for CallParams<E, Args, R> where
    Args: Unpin,
    <E as Environment>::AccountId: Unpin,
    <E as Environment>::Balance: Unpin

impl<E, Args, R> UnwindSafe for CallParams<E, Args, R> where
    Args: UnwindSafe,
    <E as Environment>::AccountId: UnwindSafe,
    <E as Environment>::Balance: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,