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 tx_handler_authorize(), 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