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
sourceimpl<E, CallType, Args, RetType> CallBuilder<E, Unset<CallType>, Args, RetType> where
E: Environment,
impl<E, CallType, Args, RetType> CallBuilder<E, Unset<CallType>, Args, RetType> where
E: Environment,
sourcepub fn call_type<NewCallType>(
self,
call_type: NewCallType
) -> CallBuilder<E, Set<NewCallType>, Args, RetType>
pub fn call_type<NewCallType>(
self,
call_type: NewCallType
) -> CallBuilder<E, Set<NewCallType>, Args, RetType>
The type of the call.
sourceimpl<E, CallType, Args, RetType> CallBuilder<E, CallType, Args, RetType> where
E: Environment,
impl<E, CallType, Args, RetType> CallBuilder<E, CallType, Args, RetType> where
E: Environment,
sourcepub fn call_flags(
self,
call_flags: CallFlags
) -> CallBuilder<E, CallType, Args, RetType>
pub fn call_flags(
self,
call_flags: CallFlags
) -> CallBuilder<E, CallType, Args, RetType>
The flags used to change the behavior of the contract call.
sourceimpl<E, CallType, Args> CallBuilder<E, CallType, Args, Unset<ReturnType<()>>> where
E: Environment,
impl<E, CallType, Args> CallBuilder<E, CallType, Args, Unset<ReturnType<()>>> where
E: Environment,
sourcepub fn returns<R>(self) -> CallBuilder<E, CallType, Args, Set<ReturnType<R>>>
pub fn returns<R>(self) -> CallBuilder<E, CallType, Args, Set<ReturnType<R>>>
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
.
sourceimpl<E, CallType, RetType> CallBuilder<E, CallType, Unset<ExecutionInput<EmptyArgumentList>>, RetType> where
E: Environment,
impl<E, CallType, RetType> CallBuilder<E, CallType, Unset<ExecutionInput<EmptyArgumentList>>, RetType> where
E: Environment,
sourcepub fn exec_input<Args>(
self,
exec_input: ExecutionInput<Args>
) -> CallBuilder<E, CallType, Set<ExecutionInput<Args>>, RetType>
pub fn exec_input<Args>(
self,
exec_input: ExecutionInput<Args>
) -> CallBuilder<E, CallType, Set<ExecutionInput<Args>>, RetType>
Sets the execution input to the given value.
sourceimpl<E, Args, RetType> CallBuilder<E, Set<Call<E>>, Args, RetType> where
E: Environment,
impl<E, Args, RetType> CallBuilder<E, Set<Call<E>>, Args, RetType> where
E: Environment,
sourcepub fn callee(self, callee: E::AccountId) -> Self
pub fn callee(self, callee: E::AccountId) -> Self
Sets the callee
for the current cross-contract call.
sourcepub fn gas_limit(self, gas_limit: u64) -> Self
pub fn gas_limit(self, gas_limit: u64) -> Self
Sets the gas_limit
for the current cross-contract call.
sourcepub fn transferred_value(self, transferred_value: E::Balance) -> Self
pub fn transferred_value(self, transferred_value: E::Balance) -> Self
Sets the transferred_value
for the current cross-contract call.
sourceimpl<E, Args, RetType> CallBuilder<E, Set<DelegateCall<E>>, Args, RetType> where
E: Environment,
impl<E, Args, RetType> CallBuilder<E, Set<DelegateCall<E>>, Args, RetType> where
E: Environment,
sourceimpl<E, Args, RetType> CallBuilder<E, Set<Call<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<RetType>>> where
E: Environment,
impl<E, Args, RetType> CallBuilder<E, Set<Call<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<RetType>>> where
E: Environment,
sourcepub fn params(self) -> CallParams<E, Call<E>, Args, RetType>
pub fn params(self) -> CallParams<E, Call<E>, Args, RetType>
Finalizes the call builder to call a function.
sourceimpl<E, Args, RetType> CallBuilder<E, Set<DelegateCall<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<RetType>>> where
E: Environment,
impl<E, Args, RetType> CallBuilder<E, Set<DelegateCall<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<RetType>>> where
E: Environment,
sourcepub fn params(self) -> CallParams<E, DelegateCall<E>, Args, RetType>
pub fn params(self) -> CallParams<E, DelegateCall<E>, Args, RetType>
Finalizes the call builder to call a function.
sourceimpl<E, RetType> CallBuilder<E, Set<Call<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<RetType>> where
E: Environment,
impl<E, RetType> CallBuilder<E, Set<Call<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<RetType>> where
E: Environment,
sourcepub fn params(self) -> CallParams<E, Call<E>, EmptyArgumentList, ()>
pub fn params(self) -> CallParams<E, Call<E>, EmptyArgumentList, ()>
Finalizes the call builder to call a function.
sourceimpl<E, RetType> CallBuilder<E, Set<DelegateCall<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<RetType>> where
E: Environment,
impl<E, RetType> CallBuilder<E, Set<DelegateCall<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<RetType>> where
E: Environment,
sourcepub fn params(self) -> CallParams<E, DelegateCall<E>, EmptyArgumentList, ()>
pub fn params(self) -> CallParams<E, DelegateCall<E>, EmptyArgumentList, ()>
Finalizes the call builder to call a function.
sourceimpl<E> CallBuilder<E, Set<Call<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<ReturnType<()>>> where
E: Environment,
impl<E> CallBuilder<E, Set<Call<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<ReturnType<()>>> where
E: Environment,
sourceimpl<E> CallBuilder<E, Set<DelegateCall<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<ReturnType<()>>> where
E: Environment,
impl<E> CallBuilder<E, Set<DelegateCall<E>>, Unset<ExecutionInput<EmptyArgumentList>>, Unset<ReturnType<()>>> where
E: Environment,
sourceimpl<E, Args, R> CallBuilder<E, Set<Call<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<R>>> where
E: Environment,
Args: Encode,
R: Decode,
impl<E, Args, R> CallBuilder<E, Set<Call<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<R>>> where
E: Environment,
Args: Encode,
R: Decode,
sourceimpl<E, Args, R> CallBuilder<E, Set<DelegateCall<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<R>>> where
E: Environment,
Args: Encode,
R: Decode,
impl<E, Args, R> CallBuilder<E, Set<DelegateCall<E>>, Set<ExecutionInput<Args>>, Set<ReturnType<R>>> where
E: Environment,
Args: Encode,
R: Decode,
Auto Trait Implementations
impl<E, CallType, Args, RetType> RefUnwindSafe for CallBuilder<E, CallType, Args, RetType> where
Args: RefUnwindSafe,
CallType: RefUnwindSafe,
RetType: RefUnwindSafe,
impl<E, CallType, Args, RetType> Send for CallBuilder<E, CallType, Args, RetType> where
Args: Send,
CallType: Send,
RetType: Send,
impl<E, CallType, Args, RetType> Sync for CallBuilder<E, CallType, Args, RetType> where
Args: Sync,
CallType: Sync,
RetType: Sync,
impl<E, CallType, Args, RetType> Unpin for CallBuilder<E, CallType, Args, RetType> where
Args: Unpin,
CallType: Unpin,
RetType: Unpin,
impl<E, CallType, Args, RetType> UnwindSafe for CallBuilder<E, CallType, Args, RetType> where
Args: UnwindSafe,
CallType: UnwindSafe,
RetType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more