Struct rb_thread_struct

Source
#[repr(C)]
pub struct rb_thread_struct {
Show 59 fields pub self_: VALUE, pub vm: *mut rb_vm_t, pub stack: *mut VALUE, pub stack_size: usize, pub cfp: *mut rb_control_frame_t, pub safe_level: c_int, pub raised_flag: c_int, pub last_status: VALUE, pub state: c_int, pub waiting_fd: c_int, pub passed_block: *const rb_block_t, pub passed_bmethod_me: *const rb_method_entry_t, pub passed_ci: *mut rb_call_info_t, pub top_self: VALUE, pub top_wrapper: VALUE, pub base_block: *mut rb_block_t, pub root_lep: *mut VALUE, pub root_svar: VALUE, pub thread_id: rb_nativethread_id_t, pub status: rb_thread_status, pub to_kill: c_int, pub priority: c_int, pub native_thread_data: native_thread_data_t, pub blocking_region_buffer: *mut c_void, pub thgroup: VALUE, pub value: VALUE, pub errinfo: VALUE, pub pending_interrupt_queue: VALUE, pub pending_interrupt_queue_checked: c_int, pub pending_interrupt_mask_stack: VALUE, pub interrupt_flag: rb_atomic_t, pub interrupt_mask: c_ulong, pub interrupt_lock: rb_nativethread_lock_t, pub interrupt_cond: rb_nativethread_cond_t, pub unblock: rb_unblock_callback, pub locking_mutex: VALUE, pub keeping_mutexes: *mut rb_mutex_struct, pub tag: *mut rb_vm_tag, pub protect_tag: *mut rb_vm_protect_tag, pub parse_in_eval: c_int, pub mild_compile_error: c_int, pub local_storage: *mut st_table, pub join_list: *mut rb_thread_list_t, pub first_proc: VALUE, pub first_args: VALUE, pub first_func: Option<unsafe extern "C" fn() -> VALUE>, pub machine: rb_thread_struct__bindgen_ty_1, pub mark_stack_len: c_int, pub stat_insn_usage: VALUE, pub event_hooks: rb_hook_list_t, pub trace_arg: *mut rb_trace_arg_struct, pub fiber: VALUE, pub root_fiber: VALUE, pub root_jmpbuf: rb_jmpbuf_t, pub ensure_list: *mut rb_ensure_list_t, pub method_missing_reason: c_int, pub abort_on_exception: c_int, pub altstack: *mut c_void, pub running_time_us: c_ulong,
}

Fields§

§self_: VALUE§vm: *mut rb_vm_t§stack: *mut VALUE§stack_size: usize§cfp: *mut rb_control_frame_t§safe_level: c_int§raised_flag: c_int§last_status: VALUE§state: c_int§waiting_fd: c_int§passed_block: *const rb_block_t§passed_bmethod_me: *const rb_method_entry_t§passed_ci: *mut rb_call_info_t§top_self: VALUE§top_wrapper: VALUE§base_block: *mut rb_block_t§root_lep: *mut VALUE§root_svar: VALUE§thread_id: rb_nativethread_id_t§status: rb_thread_status§to_kill: c_int§priority: c_int§native_thread_data: native_thread_data_t§blocking_region_buffer: *mut c_void§thgroup: VALUE§value: VALUE§errinfo: VALUE§pending_interrupt_queue: VALUE§pending_interrupt_queue_checked: c_int§pending_interrupt_mask_stack: VALUE§interrupt_flag: rb_atomic_t§interrupt_mask: c_ulong§interrupt_lock: rb_nativethread_lock_t§interrupt_cond: rb_nativethread_cond_t§unblock: rb_unblock_callback§locking_mutex: VALUE§keeping_mutexes: *mut rb_mutex_struct§tag: *mut rb_vm_tag§protect_tag: *mut rb_vm_protect_tag§parse_in_eval: c_int§mild_compile_error: c_int§local_storage: *mut st_table§join_list: *mut rb_thread_list_t§first_proc: VALUE§first_args: VALUE§first_func: Option<unsafe extern "C" fn() -> VALUE>§machine: rb_thread_struct__bindgen_ty_1§mark_stack_len: c_int§stat_insn_usage: VALUE§event_hooks: rb_hook_list_t§trace_arg: *mut rb_trace_arg_struct§fiber: VALUE§root_fiber: VALUE§root_jmpbuf: rb_jmpbuf_t§ensure_list: *mut rb_ensure_list_t§method_missing_reason: c_int§abort_on_exception: c_int§altstack: *mut c_void§running_time_us: c_ulong

Trait Implementations§

Source§

impl Clone for rb_thread_struct

Source§

fn clone(&self) -> rb_thread_struct

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 Debug for rb_thread_struct

Source§

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

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

impl Copy for rb_thread_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.