pub struct InternalArgs<'internal_args> {
pub env_ptr: NonNull<Env<'internal_args>>,
pub header_ptr: NonNull<<TransactionHeader as IoType>::PointerType>,
pub header_size: NonNull<u32>,
pub read_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>,
pub read_slots_size: NonNull<u32>,
pub write_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>,
pub write_slots_size: NonNull<u32>,
pub payload_ptr: NonNull<<TxHandlerPayload as IoType>::PointerType>,
pub payload_size: NonNull<u32>,
pub seal_ptr: NonNull<<TxHandlerSeal as IoType>::PointerType>,
pub seal_size: NonNull<u32>,
/* private fields */
}Expand description
Data structure containing expected input to simple_wallet_base_execute(), it is used internally by the contract, there should be no need to construct it explicitly except maybe in contract’s own tests
Fields§
§env_ptr: NonNull<Env<'internal_args>>§header_ptr: NonNull<<TransactionHeader as IoType>::PointerType>§header_size: NonNull<u32>Size of the contents header_ptr points to
read_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>§read_slots_size: NonNull<u32>Size of the contents read_slots_ptr points to
write_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>§write_slots_size: NonNull<u32>Size of the contents write_slots_ptr points to
payload_ptr: NonNull<<TxHandlerPayload as IoType>::PointerType>§payload_size: NonNull<u32>Size of the contents payload_ptr points to
seal_ptr: NonNull<<TxHandlerSeal as IoType>::PointerType>§seal_size: NonNull<u32>Size of the contents seal_ptr points to
Trait Implementations§
Auto Trait Implementations§
impl<'internal_args> Freeze for InternalArgs<'internal_args>
impl<'internal_args> !RefUnwindSafe for InternalArgs<'internal_args>
impl<'internal_args> !Send for InternalArgs<'internal_args>
impl<'internal_args> !Sync for InternalArgs<'internal_args>
impl<'internal_args> Unpin for InternalArgs<'internal_args>
impl<'internal_args> !UnwindSafe for InternalArgs<'internal_args>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more