#[repr(C)]pub struct ExampleBalance2Args {
pub target_ptr: NonNull<Address>,
pub balance_ptr: NonNull<<MaybeData<Balance> as IoType>::PointerType>,
pub balance_size: *mut u32,
pub balance_capacity: NonNull<u32>,
pub ok_result_ptr: NonNull<()>,
pub ok_result_size: *mut u32,
pub ok_result_capacity: NonNull<u32>,
}
Expand description
Data structure containing expected input for external method invocation, eventually calling balance2()
on the other side by the host.
This can be used with Env
, though there are helper methods on this provided by extension trait that allow not dealing with this struct directly in simpler cases.
Fields§
§target_ptr: NonNull<Address>
§balance_ptr: NonNull<<MaybeData<Balance> as IoType>::PointerType>
§balance_size: *mut u32
Size of the contents balance_ptr
points to
balance_capacity: NonNull<u32>
Capacity of the allocated memory balance_ptr
points to
ok_result_ptr: NonNull<()>
§ok_result_size: *mut u32
Size of the contents ok_result_ptr
points to
ok_result_capacity: NonNull<u32>
Capacity of the allocated memory ok_result_ptr
points to
Trait Implementations§
Source§impl ExternalArgs for ExampleBalance2Args
impl ExternalArgs for ExampleBalance2Args
Source§const FINGERPRINT: MethodFingerprint
const FINGERPRINT: MethodFingerprint
Fingerprint of the method being called
Auto Trait Implementations§
impl Freeze for ExampleBalance2Args
impl RefUnwindSafe for ExampleBalance2Args
impl !Send for ExampleBalance2Args
impl !Sync for ExampleBalance2Args
impl Unpin for ExampleBalance2Args
impl UnwindSafe for ExampleBalance2Args
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