pub struct CallBuilder<E, CallType, Args, RetType>where
    E: Environment,
{ /* private fields */ }
Expand description

Builds up a cross contract call.

Implementations

The type of the call.

The flags used to change the behavior of the contract call.

Sets the type of the returned value upon the execution of the call.

Note

Either use .returns::<()> to signal that the call does not return a value or use .returns::<T> to signal that the call returns a value of type T.

Sets the execution input to the given value.

Sets the callee for the current cross-contract call.

Sets the gas_limit for the current cross-contract call.

Sets the transferred_value for the current cross-contract call.

Sets the code_hash to perform a delegate call with.

Finalizes the call builder to call a function.

Finalizes the call builder to call a function.

Finalizes the call builder to call a function.

Finalizes the call builder to call a function.

Invokes the cross-chain function call.

Invokes the cross-chain function call.

Invokes the cross-chain function call and returns the result.

Invokes the cross-chain function call and returns the result.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.