pub struct CallbackArgApiWrapper<A: VMApi> { /* private fields */ }
Expand description
Replaces the EndpointArgumentApi inside a promises callback, and causes it to read arguments from the callback data instead of the regular tx input.
Trait Implementations§
source§impl<A: Clone + VMApi> Clone for CallbackArgApiWrapper<A>
impl<A: Clone + VMApi> Clone for CallbackArgApiWrapper<A>
source§fn clone(&self) -> CallbackArgApiWrapper<A>
fn clone(&self) -> CallbackArgApiWrapper<A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<A: VMApi> EndpointArgumentApi for CallbackArgApiWrapper<A>
impl<A: VMApi> EndpointArgumentApi for CallbackArgApiWrapper<A>
type EndpointArgumentApiImpl = CallbackArgApiWrapper<A>
fn argument_api_impl() -> Self::EndpointArgumentApiImpl
source§impl<A: VMApi> EndpointArgumentApiImpl for CallbackArgApiWrapper<A>
impl<A: VMApi> EndpointArgumentApiImpl for CallbackArgApiWrapper<A>
fn endpoint_init(&self)
fn get_num_arguments(&self) -> i32
fn load_argument_managed_buffer( &self, arg_index: i32, dest: Self::ManagedBufferHandle )
fn load_callback_closure_buffer(&self, dest: Self::ManagedBufferHandle)
fn get_argument_len(&self, arg_index: i32) -> usize
fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes
fn load_argument_big_int_unsigned( &self, arg_index: i32, dest: Self::BigIntHandle )
fn load_argument_big_int_signed(&self, arg_index: i32, dest: Self::BigIntHandle)
fn get_argument_u64(&self, arg_index: i32) -> u64
fn get_argument_i64(&self, arg_index: i32) -> i64
source§impl<A: VMApi> ErrorApi for CallbackArgApiWrapper<A>
impl<A: VMApi> ErrorApi for CallbackArgApiWrapper<A>
type ErrorApiImpl = <A as ErrorApi>::ErrorApiImpl
fn error_api_impl() -> Self::ErrorApiImpl
source§impl<A> HandleTypeInfo for CallbackArgApiWrapper<A>where
A: VMApi,
impl<A> HandleTypeInfo for CallbackArgApiWrapper<A>where A: VMApi,
type ManagedBufferHandle = <A as HandleTypeInfo>::ManagedBufferHandle
type BigIntHandle = <A as HandleTypeInfo>::BigIntHandle
type BigFloatHandle = <A as HandleTypeInfo>::BigFloatHandle
type EllipticCurveHandle = <A as HandleTypeInfo>::EllipticCurveHandle
source§impl<A: VMApi> ManagedTypeApi for CallbackArgApiWrapper<A>
impl<A: VMApi> ManagedTypeApi for CallbackArgApiWrapper<A>
type ManagedTypeApiImpl = <A as ManagedTypeApi>::ManagedTypeApiImpl
fn managed_type_impl() -> Self::ManagedTypeApiImpl
source§impl<A: VMApi> StaticVarApi for CallbackArgApiWrapper<A>
impl<A: VMApi> StaticVarApi for CallbackArgApiWrapper<A>
type StaticVarApiImpl = <A as StaticVarApi>::StaticVarApiImpl
fn static_var_api_impl() -> Self::StaticVarApiImpl
Auto Trait Implementations§
impl<A> CodecFromSelf for CallbackArgApiWrapper<A>where A: CodecFromSelf,
impl<A> RefUnwindSafe for CallbackArgApiWrapper<A>where A: RefUnwindSafe,
impl<A> Send for CallbackArgApiWrapper<A>where A: Send,
impl<A> Sync for CallbackArgApiWrapper<A>where A: Sync,
impl<A> Unpin for CallbackArgApiWrapper<A>where A: Unpin,
impl<A> UnwindSafe for CallbackArgApiWrapper<A>where A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more