Struct ink_env::call::ExecutionInput

source ·
pub struct ExecutionInput<Args> { /* private fields */ }
Expand description

The input data for a smart contract execution.

Implementations§

source§

impl ExecutionInput<EmptyArgumentList>

source

pub fn new(selector: Selector) -> Self

Creates a new execution input with the given selector.

source

pub fn push_arg<T>( self, arg: T, ) -> ExecutionInput<ArgumentList<Argument<T>, EmptyArgumentList>>
where T: Encode,

Pushes an argument to the execution input.

source§

impl<Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>>

source

pub fn push_arg<T>( self, arg: T, ) -> ExecutionInput<ArgsList<T, ArgsList<Head, Rest>>>
where T: Encode,

Pushes an argument to the execution input.

source§

impl<Args> ExecutionInput<Args>

source

pub fn update_selector(&mut self, selector: Selector)

Modify the selector.

Useful when using the ExecutionInput generated as part of the ContractRef, but using a custom selector.

Trait Implementations§

source§

impl<Args: Clone> Clone for ExecutionInput<Args>

source§

fn clone(&self) -> ExecutionInput<Args>

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

impl<Args: Debug> Debug for ExecutionInput<Args>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Args: Default> Default for ExecutionInput<Args>

source§

fn default() -> ExecutionInput<Args>

Returns the “default value” for a type. Read more
source§

impl<Args> Encode for ExecutionInput<Args>
where Args: Encode,

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<O: Output + ?Sized>(&self, output: &mut O)

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more

Auto Trait Implementations§

§

impl<Args> Freeze for ExecutionInput<Args>
where Args: Freeze,

§

impl<Args> RefUnwindSafe for ExecutionInput<Args>
where Args: RefUnwindSafe,

§

impl<Args> Send for ExecutionInput<Args>
where Args: Send,

§

impl<Args> Sync for ExecutionInput<Args>
where Args: Sync,

§

impl<Args> Unpin for ExecutionInput<Args>
where Args: Unpin,

§

impl<Args> UnwindSafe for ExecutionInput<Args>
where Args: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where 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 T
where 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
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

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

§

fn vzip(self) -> V

§

impl<T> EncodeLike<&&T> for T
where T: Encode,

§

impl<T> EncodeLike<&T> for T
where T: Encode,

§

impl<T> EncodeLike<&mut T> for T
where T: Encode,

§

impl<T> EncodeLike<Arc<T>> for T
where T: Encode,

§

impl<T> EncodeLike<Box<T>> for T
where T: Encode,

§

impl<'a, T> EncodeLike<Cow<'a, T>> for T
where T: ToOwned + Encode,

§

impl<T> EncodeLike<Rc<T>> for T
where T: Encode,

§

impl<T> TypeId for T
where T: Debug + Default,