Struct rb_vm_struct

Source
#[repr(C)]
pub struct rb_vm_struct {
Show 48 fields pub self_: VALUE, pub gvl: rb_global_vm_lock_t, pub main_thread: *mut rb_thread_struct, pub running_thread: *const rb_thread_struct, pub main_altstack: *mut c_void, pub fork_gen: rb_serial_t, pub waitpid_lock: rb_nativethread_lock_t, pub waiting_pids: list_head, pub waiting_grps: list_head, pub waiting_fds: list_head, pub living_threads: list_head, pub thgroup_default: VALUE, pub living_thread_num: c_int, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub sleeper: c_int, pub mark_object_ary: VALUE, pub special_exceptions: [VALUE; 5], pub top_self: VALUE, pub load_path: VALUE, pub load_path_snapshot: VALUE, pub load_path_check_cache: VALUE, pub expanded_load_path: VALUE, pub loaded_features: VALUE, pub loaded_features_snapshot: VALUE, pub loaded_features_index: *mut st_table, pub loading_table: *mut st_table, pub trap_list: rb_vm_struct__bindgen_ty_1, pub global_hooks: rb_hook_list_t, pub ensure_rollback_table: *mut st_table, pub postponed_job_buffer: *mut rb_postponed_job_struct, pub postponed_job_index: c_int, pub src_encoding_index: c_int, pub workqueue: list_head, pub workqueue_lock: rb_nativethread_lock_t, pub verbose: VALUE, pub debug: VALUE, pub orig_progname: VALUE, pub progname: VALUE, pub coverages: VALUE, pub coverage_mode: c_int, pub defined_module_hash: VALUE, pub objspace: *mut rb_objspace, pub at_exit: *mut rb_at_exit_list, pub defined_strings: *mut VALUE, pub frozen_strings: *mut st_table, pub default_params: rb_vm_struct__bindgen_ty_2, pub redefined_flag: [c_short; 28],
}

Fields§

§self_: VALUE§gvl: rb_global_vm_lock_t§main_thread: *mut rb_thread_struct§running_thread: *const rb_thread_struct§main_altstack: *mut c_void§fork_gen: rb_serial_t§waitpid_lock: rb_nativethread_lock_t§waiting_pids: list_head§waiting_grps: list_head§waiting_fds: list_head§living_threads: list_head§thgroup_default: VALUE§living_thread_num: c_int§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§sleeper: c_int§mark_object_ary: VALUE§special_exceptions: [VALUE; 5]§top_self: VALUE§load_path: VALUE§load_path_snapshot: VALUE§load_path_check_cache: VALUE§expanded_load_path: VALUE§loaded_features: VALUE§loaded_features_snapshot: VALUE§loaded_features_index: *mut st_table§loading_table: *mut st_table§trap_list: rb_vm_struct__bindgen_ty_1§global_hooks: rb_hook_list_t§ensure_rollback_table: *mut st_table§postponed_job_buffer: *mut rb_postponed_job_struct§postponed_job_index: c_int§src_encoding_index: c_int§workqueue: list_head§workqueue_lock: rb_nativethread_lock_t§verbose: VALUE§debug: VALUE§orig_progname: VALUE§progname: VALUE§coverages: VALUE§coverage_mode: c_int§defined_module_hash: VALUE§objspace: *mut rb_objspace§at_exit: *mut rb_at_exit_list§defined_strings: *mut VALUE§frozen_strings: *mut st_table§default_params: rb_vm_struct__bindgen_ty_2§redefined_flag: [c_short; 28]

Implementations§

Source§

impl rb_vm_struct

Source

pub fn running(&self) -> c_uint

Source

pub fn set_running(&mut self, val: c_uint)

Source

pub unsafe fn running_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_running_raw(this: *mut Self, val: c_uint)

Source

pub fn thread_abort_on_exception(&self) -> c_uint

Source

pub fn set_thread_abort_on_exception(&mut self, val: c_uint)

Source

pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: c_uint)

Source

pub fn thread_report_on_exception(&self) -> c_uint

Source

pub fn set_thread_report_on_exception(&mut self, val: c_uint)

Source

pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: c_uint)

Source

pub fn safe_level_(&self) -> c_uint

Source

pub fn set_safe_level_(&mut self, val: c_uint)

Source

pub unsafe fn safe_level__raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_safe_level__raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( running: c_uint, thread_abort_on_exception: c_uint, thread_report_on_exception: c_uint, safe_level_: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for rb_vm_struct

Source§

fn clone(&self) -> rb_vm_struct

Returns a duplicate 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 Debug for rb_vm_struct

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for rb_vm_struct

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.