Skip to main content

vlib_node_t

Struct vlib_node_t 

Source
#[repr(C)]
pub struct vlib_node_t {
Show 38 fields pub function: vlib_node_function_t, pub name: *mut u8_, pub name_elog_string: u32_, pub stats_total: vlib_node_stats_t, pub stats_last_clear: vlib_node_stats_t, pub type_: vlib_node_type_t, pub index: u32_, pub runtime_index: u32_, pub runtime_data: *mut u8_, pub flags: u16_, pub state: u8_, pub runtime_data_bytes: u8_, pub protocol_hint: u8_, pub n_errors: u16_, pub frame_size: u16_, pub scalar_offset: u16_, pub vector_offset: u16_, pub magic_offset: u16_, pub aux_offset: u16_, pub frame_size_index: u16_, pub error_heap_handle: u32_, pub error_heap_index: u32_, pub error_counters: *mut vlib_error_desc_t, pub next_node_names: *mut *mut c_char, pub next_nodes: *mut u32_, pub sibling_of: *mut c_char, pub sibling_bitmap: *mut uword, pub n_vectors_by_next_node: *mut u64_, pub next_slot_by_node: *mut uword, pub prev_node_bitmap: *mut uword, pub owner_node_index: u32_, pub owner_next_index: u32_, pub format_buffer: format_function_t, pub unformat_buffer: unformat_function_t, pub format_trace: format_function_t, pub validate_frame: Option<unsafe extern "C" fn(vm: *mut vlib_main_t, arg1: *mut vlib_node_runtime_t, f: *mut vlib_frame_t) -> *mut u8_>, pub state_string: *mut u8_, pub node_fn_registrations: *mut vlib_node_fn_registration_t,
}

Fields§

§function: vlib_node_function_t§name: *mut u8_§name_elog_string: u32_§stats_total: vlib_node_stats_t§stats_last_clear: vlib_node_stats_t§type_: vlib_node_type_t§index: u32_§runtime_index: u32_§runtime_data: *mut u8_§flags: u16_§state: u8_§runtime_data_bytes: u8_§protocol_hint: u8_§n_errors: u16_§frame_size: u16_§scalar_offset: u16_§vector_offset: u16_§magic_offset: u16_§aux_offset: u16_§frame_size_index: u16_§error_heap_handle: u32_§error_heap_index: u32_§error_counters: *mut vlib_error_desc_t§next_node_names: *mut *mut c_char§next_nodes: *mut u32_§sibling_of: *mut c_char§sibling_bitmap: *mut uword§n_vectors_by_next_node: *mut u64_§next_slot_by_node: *mut uword§prev_node_bitmap: *mut uword§owner_node_index: u32_§owner_next_index: u32_§format_buffer: format_function_t§unformat_buffer: unformat_function_t§format_trace: format_function_t§validate_frame: Option<unsafe extern "C" fn(vm: *mut vlib_main_t, arg1: *mut vlib_node_runtime_t, f: *mut vlib_frame_t) -> *mut u8_>§state_string: *mut u8_§node_fn_registrations: *mut vlib_node_fn_registration_t

Trait Implementations§

Source§

impl Clone for vlib_node_t

Source§

fn clone(&self) -> vlib_node_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_node_t

Source§

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

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

impl Default for vlib_node_t

Source§

fn default() -> Self

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

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