Module_method_meta

Function Module_method_meta 

Source
pub unsafe fn Module_method_meta(
    self_: Pin<&mut Module>,
    method_name: &CxxString,
    method_meta_out: *mut MethodMeta,
) -> Error
Available on crate feature module only.
Expand description

Get a method metadata struct by method name.

Loads the program if needed.

§Arguments

  • method_name: The name of the method to get the metadata for.
  • method_meta_out: A mutable reference to a MethodMeta struct that will be filled with the metadata.

§Returns

A error indicating whether the metadata retrieval was successful or not.

§Safety

The method_meta_out struct must be valid for the lifetime of the function. The method_meta_out struct can be used only if the function returns Error::Ok.