Struct rbspy_ruby_structs::ruby_3_0_1::rb_vm_struct
source · [−]#[repr(C)]pub struct rb_vm_struct {Show 44 fields
pub self_: VALUE,
pub ractor: rb_vm_struct__bindgen_ty_1,
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 ubf_async_safe: c_int,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
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_2,
pub ensure_rollback_table: *mut st_table,
pub postponed_job_buffer: *mut rb_postponed_job_struct,
pub postponed_job_index: rb_atomic_t,
pub src_encoding_index: c_int,
pub workqueue: list_head,
pub workqueue_lock: rb_nativethread_lock_t,
pub orig_progname: VALUE,
pub progname: VALUE,
pub coverages: VALUE,
pub coverage_mode: c_int,
pub defined_module_hash: *mut st_table,
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 builtin_function_table: *const rb_builtin_function,
pub builtin_inline_index: c_int,
pub negative_cme_table: *mut rb_id_table,
pub global_cc_cache_table: [*const rb_callcache; 1023],
pub default_params: rb_vm_struct__bindgen_ty_3,
pub redefined_flag: [c_short; 29],
}Fields
self_: VALUEractor: rb_vm_struct__bindgen_ty_1main_altstack: *mut c_voidfork_gen: rb_serial_twaitpid_lock: rb_nativethread_lock_twaiting_pids: list_headwaiting_grps: list_headwaiting_fds: list_headubf_async_safe: c_int_bitfield_align_1: [u8; 0]_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>mark_object_ary: VALUEspecial_exceptions: [VALUE; 5]top_self: VALUEload_path: VALUEload_path_snapshot: VALUEload_path_check_cache: VALUEexpanded_load_path: VALUEloaded_features: VALUEloaded_features_snapshot: VALUEloaded_features_index: *mut st_tableloading_table: *mut st_tabletrap_list: rb_vm_struct__bindgen_ty_2ensure_rollback_table: *mut st_tablepostponed_job_buffer: *mut rb_postponed_job_structpostponed_job_index: rb_atomic_tsrc_encoding_index: c_intworkqueue: list_headworkqueue_lock: rb_nativethread_lock_torig_progname: VALUEprogname: VALUEcoverages: VALUEcoverage_mode: c_intdefined_module_hash: *mut st_tableobjspace: *mut rb_objspaceat_exit: *mut rb_at_exit_listdefined_strings: *mut VALUEfrozen_strings: *mut st_tablebuiltin_function_table: *const rb_builtin_functionbuiltin_inline_index: c_intnegative_cme_table: *mut rb_id_tableglobal_cc_cache_table: [*const rb_callcache; 1023]default_params: rb_vm_struct__bindgen_ty_3redefined_flag: [c_short; 29]Implementations
sourceimpl rb_vm_struct
impl rb_vm_struct
pub fn running(&self) -> c_uint
pub fn set_running(&mut self, val: c_uint)
pub fn thread_abort_on_exception(&self) -> c_uint
pub fn set_thread_abort_on_exception(&mut self, val: c_uint)
pub fn thread_report_on_exception(&self) -> c_uint
pub fn set_thread_report_on_exception(&mut self, val: c_uint)
pub fn thread_ignore_deadlock(&self) -> c_uint
pub fn set_thread_ignore_deadlock(&mut self, val: c_uint)
pub fn new_bitfield_1(
running: c_uint,
thread_abort_on_exception: c_uint,
thread_report_on_exception: c_uint,
thread_ignore_deadlock: c_uint
) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations
sourceimpl Clone for rb_vm_struct
impl Clone for rb_vm_struct
sourcefn clone(&self) -> rb_vm_struct
fn clone(&self) -> rb_vm_struct
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for rb_vm_struct
impl Debug for rb_vm_struct
impl Copy for rb_vm_struct
Auto Trait Implementations
impl RefUnwindSafe for rb_vm_struct
impl !Send for rb_vm_struct
impl !Sync for rb_vm_struct
impl Unpin for rb_vm_struct
impl UnwindSafe for rb_vm_struct
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more