pub struct InternalArgs<'internal_args> {Show 18 fields
pub state_ptr: NonNull<<WalletState as IoType>::PointerType>,
pub state_size: u32,
pub state_capacity: u32,
pub header_ptr: NonNull<<TransactionHeader as IoType>::PointerType>,
pub header_size: u32,
pub header_capacity: u32,
pub read_slots_ptr: NonNull<<TxHandlerSlots<'static> as IoType>::PointerType>,
pub read_slots_size: u32,
pub read_slots_capacity: u32,
pub write_slots_ptr: NonNull<<TxHandlerSlots<'static> as IoType>::PointerType>,
pub write_slots_size: u32,
pub write_slots_capacity: u32,
pub payload_ptr: NonNull<<TxHandlerPayload<'static> as IoType>::PointerType>,
pub payload_size: u32,
pub payload_capacity: u32,
pub seal_ptr: NonNull<<TxHandlerSeal<'static> as IoType>::PointerType>,
pub seal_size: u32,
pub seal_capacity: u32,
/* private fields */
}Expand description
Data structure containing expected input to simple_wallet_base_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§
§state_ptr: NonNull<<WalletState as IoType>::PointerType>§state_size: u32Size of the contents state_ptr points to
state_capacity: u32Capacity of the allocated memory state_ptr points to
header_ptr: NonNull<<TransactionHeader as IoType>::PointerType>§header_size: u32Size of the contents header_ptr points to
header_capacity: u32Capacity of the allocated memory header_ptr points to
read_slots_ptr: NonNull<<TxHandlerSlots<'static> as IoType>::PointerType>§read_slots_size: u32Size of the contents read_slots_ptr points to
read_slots_capacity: u32Capacity of the allocated memory read_slots_ptr points to
write_slots_ptr: NonNull<<TxHandlerSlots<'static> as IoType>::PointerType>§write_slots_size: u32Size of the contents write_slots_ptr points to
write_slots_capacity: u32Capacity of the allocated memory write_slots_ptr points to
payload_ptr: NonNull<<TxHandlerPayload<'static> as IoType>::PointerType>§payload_size: u32Size of the contents payload_ptr points to
payload_capacity: u32Capacity of the allocated memory payload_ptr points to
seal_ptr: NonNull<<TxHandlerSeal<'static> as IoType>::PointerType>§seal_size: u32Size of the contents seal_ptr points to
seal_capacity: u32Capacity of the allocated memory seal_ptr points to
Trait Implementations§
Auto Trait Implementations§
impl<'internal_args> !Send for InternalArgs<'internal_args>
impl<'internal_args> !Sync for InternalArgs<'internal_args>
impl<'internal_args> Forget for InternalArgs<'internal_args>
impl<'internal_args> Freeze for InternalArgs<'internal_args>
impl<'internal_args> Move for InternalArgs<'internal_args>
impl<'internal_args> RefUnwindSafe for InternalArgs<'internal_args>where
WalletState: RefUnwindSafe,
TransactionHeader: RefUnwindSafe,
TransactionSlot: RefUnwindSafe,
u128: RefUnwindSafe,
u8: RefUnwindSafe,
impl<'internal_args> Unpin for InternalArgs<'internal_args>
impl<'internal_args> UnsafeUnpin for InternalArgs<'internal_args>where
*const WalletState is !null: UnsafeUnpin,
*const TransactionHeader is !null: UnsafeUnpin,
*const TransactionSlot is !null: UnsafeUnpin,
*const u128 is !null: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<&'internal_args ()>: UnsafeUnpin,
impl<'internal_args> UnwindSafe for InternalArgs<'internal_args>where
NonNull<WalletState>: UnwindSafe,
NonNull<TransactionHeader>: UnwindSafe,
NonNull<TransactionSlot>: UnwindSafe,
NonNull<u128>: UnwindSafe,
NonNull<u8>: UnwindSafe,
&'internal_args (): 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
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> ⓘ
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> ⓘ
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