Skip to main content

vlib_thread_main_t

Struct vlib_thread_main_t 

Source
#[repr(C)]
pub struct vlib_thread_main_t {
Show 20 fields pub next: *mut vlib_thread_registration_t, pub registrations: *mut *mut vlib_thread_registration_t, pub thread_registrations_by_name: *mut uword, pub worker_threads: *mut vlib_worker_thread_t, pub use_pthreads: c_int, pub cpu_translate: c_int, pub n_vlib_mains: u32_, pub n_thread_stacks: u32_, pub n_pthreads: u32_, pub n_threads: u32_, pub skip_cores: u32_, pub thread_prefix: *mut u8_, pub main_lcore: u32_, pub cpu_core_bitmap: *mut uword, pub cpu_socket_bitmap: *mut uword, pub frame_queue_mains: *mut vlib_frame_queue_main_t, pub worker_thread_release: u32_, pub sched_policy: u32_, pub sched_priority: u32_, pub numa_heap_size: uword,
}

Fields§

§next: *mut vlib_thread_registration_t§registrations: *mut *mut vlib_thread_registration_t§thread_registrations_by_name: *mut uword§worker_threads: *mut vlib_worker_thread_t§use_pthreads: c_int§cpu_translate: c_int§n_vlib_mains: u32_§n_thread_stacks: u32_§n_pthreads: u32_§n_threads: u32_§skip_cores: u32_§thread_prefix: *mut u8_§main_lcore: u32_§cpu_core_bitmap: *mut uword§cpu_socket_bitmap: *mut uword§frame_queue_mains: *mut vlib_frame_queue_main_t§worker_thread_release: u32_§sched_policy: u32_§sched_priority: u32_§numa_heap_size: uword

Trait Implementations§

Source§

impl Clone for vlib_thread_main_t

Source§

fn clone(&self) -> vlib_thread_main_t

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 vlib_thread_main_t

Source§

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

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

impl Default for vlib_thread_main_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for vlib_thread_main_t

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.