pub struct InternalArgs<'internal_args> {
pub state_ptr: NonNull<<WalletState as IoType>::PointerType>,
pub state_size: u32,
pub state_capacity: u32,
pub ok_result: &'internal_args mut MaybeUninit<WalletState>,
/* private fields */
}Expand description
Data structure containing expected input to simple_wallet_base_increase_nonce(), 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
ok_result: &'internal_args mut MaybeUninit<WalletState>Trait Implementations§
Auto Trait Implementations§
impl<'internal_args> !Send for InternalArgs<'internal_args>
impl<'internal_args> !Sync for InternalArgs<'internal_args>
impl<'internal_args> !UnwindSafe for InternalArgs<'internal_args>
impl<'internal_args> Forget for InternalArgs<'internal_args>
impl<'internal_args> Freeze for InternalArgs<'internal_args>where
*const WalletState is !null: Freeze,
&'internal_args mut MaybeUninit<WalletState>: Freeze,
PhantomData<&'internal_args ()>: Freeze,
impl<'internal_args> Move for InternalArgs<'internal_args>
impl<'internal_args> RefUnwindSafe for InternalArgs<'internal_args>where
WalletState: RefUnwindSafe,
impl<'internal_args> Unpin for InternalArgs<'internal_args>where
*const WalletState is !null: Unpin,
&'internal_args mut MaybeUninit<WalletState>: Unpin,
&'internal_args (): Unpin,
impl<'internal_args> UnsafeUnpin for InternalArgs<'internal_args>where
*const WalletState is !null: UnsafeUnpin,
&'internal_args mut MaybeUninit<WalletState>: UnsafeUnpin,
PhantomData<&'internal_args ()>: UnsafeUnpin,
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