Struct ink_env::call::CallBuilder

source ·
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.

Panics

This method panics if it encounters an ink::env::Error or an ink::primitives::LangError. If you want to handle those use the try_invoke method instead.

Invokes the cross-chain function call.

Note

On failure this returns an outer ink::env::Error or inner ink::primitives::LangError, both of which can be handled by the caller.

Invokes the cross-chain function call using Delegate Call semantics.

Panics

This method panics if it encounters an ink::env::Error If you want to handle those use the try_invoke method instead.

Invokes the cross-chain function call using Delegate Call semantics.

Note

On failure this an ink::env::Error which can be handled by the caller.

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

Panics

This method panics if it encounters an ink::env::Error or an ink::primitives::LangError. If you want to handle those use the try_invoke method instead.

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

Note

On failure this returns an outer ink::env::Error or inner ink::primitives::LangError, both of which can be handled by the caller.

Invokes the cross-chain function call using Delegate Call semantics and returns the result.

Panics

This method panics if it encounters an ink::env::Error If you want to handle those use the try_invoke method instead.

Invokes the cross-chain function call using Delegate Call semantics and returns the result.

Note

On failure this an ink::env::Error which can be handled by the caller.

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.