Struct ink_env::call::CallV1

source ·
pub struct CallV1<E: Environment> { /* private fields */ }
Expand description

The legacy call type for cross-contract calls. Performs a cross-contract call to callee with gas limit gas_limit, transferring transferred_value of currency.

Calls into the original call host function.

Implementations§

source§

impl<E: Environment> CallV1<E>

source

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

Returns a clean builder for CallV1.

source§

impl<E> CallV1<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.

Trait Implementations§

source§

impl<E: Clone + Environment> Clone for CallV1<E>where E::AccountId: Clone, E::Balance: Clone,

source§

fn clone(&self) -> CallV1<E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<E> RefUnwindSafe for CallV1<E>where <E as Environment>::AccountId: RefUnwindSafe, <E as Environment>::Balance: RefUnwindSafe,

§

impl<E> Send for CallV1<E>where <E as Environment>::AccountId: Send, <E as Environment>::Balance: Send,

§

impl<E> Sync for CallV1<E>where <E as Environment>::AccountId: Sync, <E as Environment>::Balance: Sync,

§

impl<E> Unpin for CallV1<E>where <E as Environment>::AccountId: Unpin, <E as Environment>::Balance: Unpin,

§

impl<E> UnwindSafe for CallV1<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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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 for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
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.
source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V