wamr_sys

Struct RuntimeInitArgs

Source
#[repr(C)]
pub struct RuntimeInitArgs {
Show 16 fields pub mem_alloc_type: mem_alloc_type_t, pub mem_alloc_option: MemAllocOption, pub native_module_name: *const c_char, pub native_symbols: *mut NativeSymbol, pub n_native_symbols: u32, pub max_thread_num: u32, pub ip_addr: [c_char; 128], pub unused: c_int, pub instance_port: c_int, pub fast_jit_code_cache_size: u32, pub gc_heap_size: u32, pub running_mode: RunningMode, pub llvm_jit_opt_level: u32, pub llvm_jit_size_level: u32, pub segue_flags: u32, pub enable_linux_perf: bool,
}

Fields§

§mem_alloc_type: mem_alloc_type_t§mem_alloc_option: MemAllocOption§native_module_name: *const c_char§native_symbols: *mut NativeSymbol§n_native_symbols: u32§max_thread_num: u32§ip_addr: [c_char; 128]§unused: c_int§instance_port: c_int§fast_jit_code_cache_size: u32§gc_heap_size: u32§running_mode: RunningMode§llvm_jit_opt_level: u32§llvm_jit_size_level: u32§segue_flags: u32§enable_linux_perf: bool

If enabled

  • llvm-jit will output a jitdump file for perf inject
  • aot will output a perf-${pid}.map for perf record
  • fast-jit. TBD
  • multi-tier-jit. TBD
  • interpreter. TBD

Trait Implementations§

Source§

impl Clone for RuntimeInitArgs

Source§

fn clone(&self) -> RuntimeInitArgs

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for RuntimeInitArgs

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for RuntimeInitArgs

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.