Struct rbspy_ruby_structs::ruby_2_5_5::rb_thread_struct
source · [−]#[repr(C)]pub struct rb_thread_struct {Show 35 fields
pub vmlt_node: list_node,
pub self_: VALUE,
pub vm: *mut rb_vm_t,
pub ec: *mut rb_execution_context_t,
pub last_status: VALUE,
pub calling: *mut rb_calling_info,
pub top_self: VALUE,
pub top_wrapper: 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 pending_interrupt_queue: VALUE,
pub pending_interrupt_mask_stack: VALUE,
pub pending_interrupt_queue_checked: c_int,
pub interrupt_lock: rb_nativethread_lock_t,
pub unblock: rb_unblock_callback,
pub locking_mutex: VALUE,
pub keeping_mutexes: *mut rb_mutex_struct,
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 stat_insn_usage: VALUE,
pub root_fiber: *mut rb_fiber_t,
pub root_jmpbuf: rb_jmpbuf_t,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub altstack: *mut c_void,
pub running_time_us: u32,
pub name: VALUE,
}
Fields
vmlt_node: list_node
self_: VALUE
vm: *mut rb_vm_t
ec: *mut rb_execution_context_t
last_status: VALUE
calling: *mut rb_calling_info
top_self: VALUE
top_wrapper: 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
pending_interrupt_queue: VALUE
pending_interrupt_mask_stack: VALUE
pending_interrupt_queue_checked: c_int
interrupt_lock: rb_nativethread_lock_t
unblock: rb_unblock_callback
locking_mutex: VALUE
keeping_mutexes: *mut rb_mutex_struct
join_list: *mut rb_thread_list_t
first_proc: VALUE
first_args: VALUE
first_func: Option<unsafe extern "C" fn() -> VALUE>
stat_insn_usage: VALUE
root_fiber: *mut rb_fiber_t
root_jmpbuf: rb_jmpbuf_t
_bitfield_align_1: [u8; 0]
_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
altstack: *mut c_void
running_time_us: u32
name: VALUE
Implementations
sourceimpl rb_thread_struct
impl rb_thread_struct
pub fn abort_on_exception(&self) -> c_uint
pub fn set_abort_on_exception(&mut self, val: c_uint)
pub fn report_on_exception(&self) -> c_uint
pub fn set_report_on_exception(&mut self, val: c_uint)
pub fn new_bitfield_1(
abort_on_exception: c_uint,
report_on_exception: c_uint
) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations
sourceimpl Clone for rb_thread_struct
impl Clone for rb_thread_struct
sourcefn clone(&self) -> rb_thread_struct
fn clone(&self) -> rb_thread_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_thread_struct
impl Debug for rb_thread_struct
impl Copy for rb_thread_struct
Auto Trait Implementations
impl RefUnwindSafe for rb_thread_struct
impl !Send for rb_thread_struct
impl !Sync for rb_thread_struct
impl Unpin for rb_thread_struct
impl UnwindSafe for rb_thread_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