Skip to main content

vnet_interface_main_t

Struct vnet_interface_main_t 

Source
#[repr(C)]
pub struct vnet_interface_main_t {
Show 24 fields pub hw_interfaces: *mut vnet_hw_interface_t, pub hw_if_rx_queues: *mut vnet_hw_if_rx_queue_t, pub rxq_index_by_hw_if_index_and_queue_id: *mut uword, pub hw_if_tx_queues: *mut vnet_hw_if_tx_queue_t, pub txq_index_by_hw_if_index_and_queue_id: *mut uword, pub hw_interface_by_name: *mut uword, pub hw_interface_classes: *mut vnet_hw_interface_class_t, pub device_classes: *mut vnet_device_class_t, pub hw_interface_class_by_name: *mut uword, pub device_class_by_name: *mut uword, pub sw_interfaces: *mut vnet_sw_interface_t, pub sw_if_index_by_sup_and_sub: *mut uword, pub sw_if_counter_lock: clib_spinlock_t, pub sw_if_counters: *mut vlib_simple_counter_main_t, pub combined_sw_if_counters: *mut vlib_combined_counter_main_t, pub deleted_hw_interface_nodes: *mut vnet_hw_interface_nodes_t, pub pcap_drop_filter_hash: *mut uword, pub buffer_opaque_format_helpers: *mut vnet_buffer_opquae_formatter_t, pub buffer_opaque2_format_helpers: *mut vnet_buffer_opquae_formatter_t, pub per_thread_data: *mut vnet_interface_per_thread_data_t, pub output_feature_arc_index: u8_, pub drop_feature_arc_index: u8_, pub hw_if_index_by_sw_if_index: *mut u32_, pub if_out_arc_end_next_index_by_sw_if_index: *mut u16_,
}

Fields§

§hw_interfaces: *mut vnet_hw_interface_t§hw_if_rx_queues: *mut vnet_hw_if_rx_queue_t§rxq_index_by_hw_if_index_and_queue_id: *mut uword§hw_if_tx_queues: *mut vnet_hw_if_tx_queue_t§txq_index_by_hw_if_index_and_queue_id: *mut uword§hw_interface_by_name: *mut uword§hw_interface_classes: *mut vnet_hw_interface_class_t§device_classes: *mut vnet_device_class_t§hw_interface_class_by_name: *mut uword§device_class_by_name: *mut uword§sw_interfaces: *mut vnet_sw_interface_t§sw_if_index_by_sup_and_sub: *mut uword§sw_if_counter_lock: clib_spinlock_t§sw_if_counters: *mut vlib_simple_counter_main_t§combined_sw_if_counters: *mut vlib_combined_counter_main_t§deleted_hw_interface_nodes: *mut vnet_hw_interface_nodes_t§pcap_drop_filter_hash: *mut uword§buffer_opaque_format_helpers: *mut vnet_buffer_opquae_formatter_t§buffer_opaque2_format_helpers: *mut vnet_buffer_opquae_formatter_t§per_thread_data: *mut vnet_interface_per_thread_data_t§output_feature_arc_index: u8_§drop_feature_arc_index: u8_§hw_if_index_by_sw_if_index: *mut u32_§if_out_arc_end_next_index_by_sw_if_index: *mut u16_

Trait Implementations§

Source§

impl Clone for vnet_interface_main_t

Source§

fn clone(&self) -> vnet_interface_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 vnet_interface_main_t

Source§

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

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

impl Default for vnet_interface_main_t

Source§

fn default() -> Self

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

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