pub struct ContractsMethodsFnPointer {
pub crate_name: &'static str,
pub main_contract_metadata: &'static [u8],
pub method_fingerprint: &'static MethodFingerprint,
pub method_metadata: &'static [u8],
pub ffi_fn: unsafe extern "C" fn(_: NonNull<NonNull<c_void>>) -> ExitCode,
}
Expand description
Pointers to methods of all contracts.
fn_pointer
’s argument is actually NonNull<InternalArgs>
of corresponding method and must
have corresponding ABI.
NOTE: It is unlikely to be necessary to interact with this directly.
Fields§
§crate_name: &'static str
§main_contract_metadata: &'static [u8]
§method_fingerprint: &'static MethodFingerprint
§method_metadata: &'static [u8]
§ffi_fn: unsafe extern "C" fn(_: NonNull<NonNull<c_void>>) -> ExitCode
Trait Implementations§
Source§impl Clone for ContractsMethodsFnPointer
impl Clone for ContractsMethodsFnPointer
Source§fn clone(&self) -> ContractsMethodsFnPointer
fn clone(&self) -> ContractsMethodsFnPointer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContractsMethodsFnPointer
impl Debug for ContractsMethodsFnPointer
impl Collect for ContractsMethodsFnPointer
impl Copy for ContractsMethodsFnPointer
Auto Trait Implementations§
impl Freeze for ContractsMethodsFnPointer
impl RefUnwindSafe for ContractsMethodsFnPointer
impl Send for ContractsMethodsFnPointer
impl Sync for ContractsMethodsFnPointer
impl Unpin for ContractsMethodsFnPointer
impl UnwindSafe for ContractsMethodsFnPointer
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