pub struct Call<E: Environment> { /* private fields */ }
Expand description
The default call type for cross-contract calls. Performs a cross-contract call to callee
with gas limit gas_limit
, transferring transferred_value
of currency.
Implementations
sourceimpl<E> Call<E> where
E: Environment,
impl<E> Call<E> 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.
Trait Implementations
Auto Trait Implementations
impl<E> RefUnwindSafe for Call<E> where
<E as Environment>::AccountId: RefUnwindSafe,
<E as Environment>::Balance: RefUnwindSafe,
impl<E> Send for Call<E> where
<E as Environment>::AccountId: Send,
<E as Environment>::Balance: Send,
impl<E> Sync for Call<E> where
<E as Environment>::AccountId: Sync,
<E as Environment>::Balance: Sync,
impl<E> Unpin for Call<E> where
<E as Environment>::AccountId: Unpin,
<E as Environment>::Balance: Unpin,
impl<E> UnwindSafe for Call<E> where
<E as Environment>::AccountId: UnwindSafe,
<E as Environment>::Balance: 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