Struct ink_env::call::Call

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

source§

impl<E: Environment> Call<E>

source

pub fn new(callee: E::AccountId) -> Self

Returns a clean builder for Call.

source§

impl<E> Call<E>where E: Environment,

source

pub fn gas_limit(self, gas_limit: Gas) -> Self

Sets the gas_limit for the current cross-contract call.

source

pub fn transferred_value(self, transferred_value: E::Balance) -> Self

Sets the transferred_value for the current cross-contract call.

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.