#[repr(C)]pub struct InternalArgs<'internal_args> {
pub public_key_ptr: NonNull<<[u8; 32] as IoType>::PointerType>,
pub public_key_size: NonNull<u32>,
pub state_ptr: NonNull<<VariableBytes as IoType>::PointerType>,
pub state_size: *mut u32,
pub state_capacity: NonNull<u32>,
/* private fields */
}
Expand description
Data structure containing expected input to simple_wallet_base_initialize()
, it is used internally by the contract, there should be no need to construct it explicitly except maybe in contract’s own tests
Fields§
§public_key_ptr: NonNull<<[u8; 32] as IoType>::PointerType>
§public_key_size: NonNull<u32>
Size of the contents public_key_ptr
points to
state_ptr: NonNull<<VariableBytes as IoType>::PointerType>
§state_size: *mut u32
Size of the contents state_ptr
points to
state_capacity: NonNull<u32>
Capacity of the allocated memory state_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