#[repr(C)]pub struct vnet_sw_interface_t {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub flags: vnet_sw_interface_flags_t,
pub sw_if_index: u32_,
pub sup_sw_if_index: u32_,
pub unnumbered_sw_if_index: u32_,
pub hw_if_index: u32_,
pub mtu: [u32_; 4],
pub sub: vnet_sub_interface_t,
pub p2p: vnet_p2p_sub_interface_t,
pub flood_class: vnet_flood_class_t,
}Fields§
§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§flags: vnet_sw_interface_flags_t§sw_if_index: u32_§sup_sw_if_index: u32_§unnumbered_sw_if_index: u32_§hw_if_index: u32_§mtu: [u32_; 4]§sub: vnet_sub_interface_t§p2p: vnet_p2p_sub_interface_t§flood_class: vnet_flood_class_tImplementations§
Source§impl vnet_sw_interface_t
impl vnet_sw_interface_t
pub fn type_(&self) -> vnet_sw_interface_type_t
pub fn set_type(&mut self, val: vnet_sw_interface_type_t)
pub unsafe fn type__raw(this: *const Self) -> vnet_sw_interface_type_t
pub unsafe fn set_type_raw(this: *mut Self, val: vnet_sw_interface_type_t)
pub fn new_bitfield_1( type_: vnet_sw_interface_type_t, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Source§impl Clone for vnet_sw_interface_t
impl Clone for vnet_sw_interface_t
Source§fn clone(&self) -> vnet_sw_interface_t
fn clone(&self) -> vnet_sw_interface_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for vnet_sw_interface_t
impl Default for vnet_sw_interface_t
impl Copy for vnet_sw_interface_t
Auto Trait Implementations§
impl Freeze for vnet_sw_interface_t
impl RefUnwindSafe for vnet_sw_interface_t
impl Send for vnet_sw_interface_t
impl Sync for vnet_sw_interface_t
impl Unpin for vnet_sw_interface_t
impl UnsafeUnpin for vnet_sw_interface_t
impl UnwindSafe for vnet_sw_interface_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more