Struct ink_env::call::CallBuilder [−][src]
pub struct CallBuilder<E, Callee, GasLimit, TransferredValue, Args, RetType> where
E: Environment, { /* fields omitted */ }
Expand description
Builds up a cross contract call.
Implementations
impl<E, GasLimit, TransferredValue, Args, RetType> CallBuilder<E, Unset<E::AccountId>, GasLimit, TransferredValue, Args, RetType> where
E: Environment,
impl<E, GasLimit, TransferredValue, Args, RetType> CallBuilder<E, Unset<E::AccountId>, GasLimit, TransferredValue, Args, RetType> where
E: Environment,
impl<E, Callee, GasLimit, TransferredValue, Args, RetType> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, RetType> where
E: Environment,
impl<E, Callee, GasLimit, TransferredValue, Args, RetType> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, RetType> where
E: Environment,
pub fn call_flags(
self,
call_flags: CallFlags
) -> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, RetType>
pub fn call_flags(
self,
call_flags: CallFlags
) -> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, RetType>
The flags used to change the behavior of the contract call.
impl<E, Callee, TransferredValue, Args, RetType> CallBuilder<E, Callee, Unset<u64>, TransferredValue, Args, RetType> where
E: Environment,
impl<E, Callee, TransferredValue, Args, RetType> CallBuilder<E, Callee, Unset<u64>, TransferredValue, Args, RetType> where
E: Environment,
impl<E, Callee, GasLimit, Args, RetType> CallBuilder<E, Callee, GasLimit, Unset<E::Balance>, Args, RetType> where
E: Environment,
impl<E, Callee, GasLimit, Args, RetType> CallBuilder<E, Callee, GasLimit, Unset<E::Balance>, Args, RetType> where
E: Environment,
pub fn transferred_value(
self,
transferred_value: E::Balance
) -> CallBuilder<E, Callee, GasLimit, Set<E::Balance>, Args, RetType>
pub fn transferred_value(
self,
transferred_value: E::Balance
) -> CallBuilder<E, Callee, GasLimit, Set<E::Balance>, Args, RetType>
Sets the value transferred upon the execution of the call.
impl<E, Callee, GasLimit, TransferredValue, Args> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, Unset<ReturnType<()>>> where
E: Environment,
impl<E, Callee, GasLimit, TransferredValue, Args> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, Unset<ReturnType<()>>> where
E: Environment,
pub fn returns<R>(
self
) -> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, Set<R>> where
R: IndicateReturnType,
pub fn returns<R>(
self
) -> CallBuilder<E, Callee, GasLimit, TransferredValue, Args, Set<R>> where
R: IndicateReturnType,
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::<ReturnType<T>>
to signal that the call returns a value of
type T
.
impl<E, Callee, GasLimit, TransferredValue, RetType> CallBuilder<E, Callee, GasLimit, TransferredValue, Unset<ExecutionInput<EmptyArgumentList>>, RetType> where
E: Environment,
impl<E, Callee, GasLimit, TransferredValue, RetType> CallBuilder<E, Callee, GasLimit, TransferredValue, Unset<ExecutionInput<EmptyArgumentList>>, RetType> where
E: Environment,
pub fn exec_input<Args>(
self,
exec_input: ExecutionInput<Args>
) -> CallBuilder<E, Callee, GasLimit, TransferredValue, Set<ExecutionInput<Args>>, RetType>
pub fn exec_input<Args>(
self,
exec_input: ExecutionInput<Args>
) -> CallBuilder<E, Callee, GasLimit, TransferredValue, Set<ExecutionInput<Args>>, RetType>
Sets the execution input to the given value.
impl<E, GasLimit, TransferredValue, Args, RetType> CallBuilder<E, Set<E::AccountId>, GasLimit, TransferredValue, Set<ExecutionInput<Args>>, Set<RetType>> where
E: Environment,
GasLimit: Unwrap<Output = u64>,
TransferredValue: Unwrap<Output = E::Balance>,
impl<E, GasLimit, TransferredValue, Args, RetType> CallBuilder<E, Set<E::AccountId>, GasLimit, TransferredValue, Set<ExecutionInput<Args>>, Set<RetType>> where
E: Environment,
GasLimit: Unwrap<Output = u64>,
TransferredValue: Unwrap<Output = E::Balance>,
Finalizes the call builder to call a function.
impl<E, GasLimit, TransferredValue, RetType> CallBuilder<E, Set<E::AccountId>, GasLimit, TransferredValue, Unset<ExecutionInput<EmptyArgumentList>>, Unset<RetType>> where
E: Environment,
GasLimit: Unwrap<Output = u64>,
TransferredValue: Unwrap<Output = E::Balance>,
impl<E, GasLimit, TransferredValue, RetType> CallBuilder<E, Set<E::AccountId>, GasLimit, TransferredValue, Unset<ExecutionInput<EmptyArgumentList>>, Unset<RetType>> where
E: Environment,
GasLimit: Unwrap<Output = u64>,
TransferredValue: Unwrap<Output = E::Balance>,
Finalizes the call builder to call a function.