Skip to main content

_vlib_node_registration

Struct _vlib_node_registration 

Source
#[repr(C)]
pub struct _vlib_node_registration<FAM: ?Sized = [*mut c_char; 0]> {
Show 26 fields pub function: vlib_node_function_t, pub node_fn_registrations: *mut vlib_node_fn_registration_t, pub name: *mut c_char, pub sibling_of: *mut c_char, pub index: u32_, pub type_: vlib_node_type_t, pub error_strings: *mut *mut c_char, pub error_counters: *mut vlib_error_desc_t, pub format_buffer: format_function_t, pub unformat_buffer: unformat_function_t, pub format_trace: format_function_t, pub unformat_trace: unformat_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 runtime_data: *mut c_void, pub process_log2_n_stack_bytes: u16_, pub runtime_data_bytes: u8_, pub state: u8_, pub flags: u16_, pub protocol_hint: u8_, pub vector_size: u8_, pub aux_size: u8_, pub scalar_size: u16_, pub n_errors: u16_, pub n_next_nodes: u16_, pub next_registration: *mut _vlib_node_registration, pub next_nodes: FAM,
}

Fields§

§function: vlib_node_function_t§node_fn_registrations: *mut vlib_node_fn_registration_t§name: *mut c_char§sibling_of: *mut c_char§index: u32_§type_: vlib_node_type_t§error_strings: *mut *mut c_char§error_counters: *mut vlib_error_desc_t§format_buffer: format_function_t§unformat_buffer: unformat_function_t§format_trace: format_function_t§unformat_trace: unformat_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_>§runtime_data: *mut c_void§process_log2_n_stack_bytes: u16_§runtime_data_bytes: u8_§state: u8_§flags: u16_§protocol_hint: u8_§vector_size: u8_§aux_size: u8_§scalar_size: u16_§n_errors: u16_§n_next_nodes: u16_§next_registration: *mut _vlib_node_registration§next_nodes: FAM

Implementations§

Source§

impl<const N: usize> _vlib_node_registration<[*mut c_char; N]>

Source

pub const fn new() -> Self

Trait Implementations§

Source§

impl<FAM: Debug + ?Sized> Debug for _vlib_node_registration<FAM>

Source§

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

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

impl Default for _vlib_node_registration<[*mut c_char; 0]>

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<FAM> Freeze for _vlib_node_registration<FAM>
where FAM: Freeze + ?Sized,

§

impl<FAM> RefUnwindSafe for _vlib_node_registration<FAM>
where FAM: RefUnwindSafe + ?Sized,

§

impl<FAM = [*mut i8; 0]> !Send for _vlib_node_registration<FAM>

§

impl<FAM = [*mut i8; 0]> !Sync for _vlib_node_registration<FAM>

§

impl<FAM> Unpin for _vlib_node_registration<FAM>
where FAM: Unpin + ?Sized,

§

impl<FAM> UnsafeUnpin for _vlib_node_registration<FAM>
where FAM: UnsafeUnpin + ?Sized,

§

impl<FAM> UnwindSafe for _vlib_node_registration<FAM>
where FAM: UnwindSafe + ?Sized,

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> 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, 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.