Skip to main content

api_main_t

Struct api_main_t 

Source
#[repr(C)]
pub struct api_main_t {
Show 44 fields pub msg_data: *mut vl_api_msg_data_t, pub msg_id_by_name: *mut uword, pub arings: *mut ring_alloc_, pub ring_misses: u32_, pub garbage_collects: u32_, pub missing_clients: u32_, pub rx_trace: *mut vl_api_trace_t, pub tx_trace: *mut vl_api_trace_t, pub msg_print_flag: c_int, pub our_pid: c_int, pub vlib_rp: *mut svm_region_t, pub vlib_primary_rp: *mut svm_region_t, pub vlib_private_rps: *mut *mut svm_region_t, pub mapped_shmem_regions: *mut *mut svm_region_t, pub shmem_hdr: *mut vl_shmem_hdr_, pub vl_clients: *mut *mut vl_api_registration_t, pub serialized_message_table_in_shmem: *mut u8_, pub first_available_msg_id: u16_, pub msg_range_by_name: *mut uword, pub msg_ranges: *mut vl_api_msg_range_t, pub api_uid: c_int, pub api_gid: c_int, pub global_baseva: u64_, pub global_size: u64_, pub api_size: u64_, pub global_pvt_heap_size: u64_, pub api_pvt_heap_size: u64_, pub vl_input_queue: *mut svm_queue_t, pub my_client_index: c_int, pub my_registration: *mut vl_api_registration_t, pub vlib_input_queue_length: u32_, pub msg_index_by_name_and_crc: *mut uword, pub json_api_repr: *mut *mut u8_, pub api_version_list: *mut api_version_t, pub region_name: *const c_char, pub root_path: *const c_char, pub replay_in_progress: c_int, pub save_msg_table_filename: *mut u8_, pub reaper_function_registrations: *mut _vl_msg_api_function_list_elt_t, pub rx_thread_handle: pthread_t, pub elog_main: *mut elog_main_t, pub elog_trace_api_messages: c_int, pub perf_counter_cbs: *mut Option<unsafe extern "C" fn(arg1: *mut api_main_t, id: u32_, before_or_after: c_int)>, pub perf_counter_cbs_tmp: *mut Option<unsafe extern "C" fn(arg1: *mut api_main_t, id: u32_, before_or_after: c_int)>,
}

Fields§

§msg_data: *mut vl_api_msg_data_t§msg_id_by_name: *mut uword§arings: *mut ring_alloc_§ring_misses: u32_§garbage_collects: u32_§missing_clients: u32_§rx_trace: *mut vl_api_trace_t§tx_trace: *mut vl_api_trace_t§msg_print_flag: c_int§our_pid: c_int§vlib_rp: *mut svm_region_t§vlib_primary_rp: *mut svm_region_t§vlib_private_rps: *mut *mut svm_region_t§mapped_shmem_regions: *mut *mut svm_region_t§shmem_hdr: *mut vl_shmem_hdr_§vl_clients: *mut *mut vl_api_registration_t§serialized_message_table_in_shmem: *mut u8_§first_available_msg_id: u16_§msg_range_by_name: *mut uword§msg_ranges: *mut vl_api_msg_range_t§api_uid: c_int§api_gid: c_int§global_baseva: u64_§global_size: u64_§api_size: u64_§global_pvt_heap_size: u64_§api_pvt_heap_size: u64_§vl_input_queue: *mut svm_queue_t§my_client_index: c_int§my_registration: *mut vl_api_registration_t§vlib_input_queue_length: u32_§msg_index_by_name_and_crc: *mut uword§json_api_repr: *mut *mut u8_§api_version_list: *mut api_version_t§region_name: *const c_char§root_path: *const c_char§replay_in_progress: c_int§save_msg_table_filename: *mut u8_§reaper_function_registrations: *mut _vl_msg_api_function_list_elt_t§rx_thread_handle: pthread_t§elog_main: *mut elog_main_t§elog_trace_api_messages: c_int§perf_counter_cbs: *mut Option<unsafe extern "C" fn(arg1: *mut api_main_t, id: u32_, before_or_after: c_int)>§perf_counter_cbs_tmp: *mut Option<unsafe extern "C" fn(arg1: *mut api_main_t, id: u32_, before_or_after: c_int)>

Trait Implementations§

Source§

impl Clone for api_main_t

Source§

fn clone(&self) -> api_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 api_main_t

Source§

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

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

impl Default for api_main_t

Source§

fn default() -> Self

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

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