Struct rb_thread_struct

Source
#[repr(C)]
pub struct rb_thread_struct {
Show 34 fields pub lt_node: ccan_list_node, pub self_: VALUE, pub ractor: *mut rb_ractor_t, pub vm: *mut rb_vm_t, pub nt: *mut rb_native_thread, pub ec: *mut rb_execution_context_t, pub sched: rb_thread_sched_item, pub serial: rb_atomic_t, pub last_status: VALUE, pub calling: *mut rb_calling_info, pub top_self: VALUE, pub top_wrapper: VALUE, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub priority: i8, pub running_time_us: u32, 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 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_waiting_list, pub invoke_arg: rb_thread_struct__bindgen_ty_1, pub invoke_type: rb_thread_struct_thread_invoke_type, pub stat_insn_usage: VALUE, pub root_fiber: *mut rb_fiber_t, pub scheduler: VALUE, pub blocking: c_uint, pub name: VALUE, pub ext_config: rb_ext_config,
}

Fields§

§lt_node: ccan_list_node§self_: VALUE§ractor: *mut rb_ractor_t§vm: *mut rb_vm_t§nt: *mut rb_native_thread§ec: *mut rb_execution_context_t§sched: rb_thread_sched_item§serial: rb_atomic_t§last_status: VALUE§calling: *mut rb_calling_info§top_self: VALUE§top_wrapper: VALUE§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§priority: i8§running_time_us: u32§blocking_region_buffer: *mut c_void§thgroup: VALUE§value: VALUE§pending_interrupt_queue: VALUE§pending_interrupt_mask_stack: VALUE§interrupt_lock: rb_nativethread_lock_t§unblock: rb_unblock_callback§locking_mutex: VALUE§keeping_mutexes: *mut rb_mutex_struct§join_list: *mut rb_waiting_list§invoke_arg: rb_thread_struct__bindgen_ty_1§invoke_type: rb_thread_struct_thread_invoke_type§stat_insn_usage: VALUE§root_fiber: *mut rb_fiber_t§scheduler: VALUE§blocking: c_uint§name: VALUE§ext_config: rb_ext_config

Implementations§

Source§

impl rb_thread_struct

Source

pub fn status(&self) -> rb_thread_status

Source

pub fn set_status(&mut self, val: rb_thread_status)

Source

pub unsafe fn status_raw(this: *const Self) -> rb_thread_status

Source

pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status)

Source

pub fn locking_native_thread(&self) -> c_uint

Source

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

Source

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

Source

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

Source

pub fn to_kill(&self) -> c_uint

Source

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

Source

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

Source

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

Source

pub fn abort_on_exception(&self) -> c_uint

Source

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

Source

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

Source

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

Source

pub fn report_on_exception(&self) -> c_uint

Source

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

Source

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

Source

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

Source

pub fn pending_interrupt_queue_checked(&self) -> c_uint

Source

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

Source

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

Source

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

Source

pub fn new_bitfield_1( status: rb_thread_status, locking_native_thread: c_uint, to_kill: c_uint, abort_on_exception: c_uint, report_on_exception: c_uint, pending_interrupt_queue_checked: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

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.