#[repr(C)]pub struct rte_kni_ops {
pub port_id: u16,
pub change_mtu: Option<unsafe extern "C" fn(port_id: u16, new_mtu: c_uint) -> c_int>,
pub config_network_if: Option<unsafe extern "C" fn(port_id: u16, if_up: u8) -> c_int>,
pub config_mac_address: Option<unsafe extern "C" fn(port_id: u16, mac_addr: *mut u8) -> c_int>,
pub config_promiscusity: Option<unsafe extern "C" fn(port_id: u16, to_on: u8) -> c_int>,
pub config_allmulticast: Option<unsafe extern "C" fn(port_id: u16, to_on: u8) -> c_int>,
}Fields§
§port_id: u16§change_mtu: Option<unsafe extern "C" fn(port_id: u16, new_mtu: c_uint) -> c_int>§config_network_if: Option<unsafe extern "C" fn(port_id: u16, if_up: u8) -> c_int>§config_mac_address: Option<unsafe extern "C" fn(port_id: u16, mac_addr: *mut u8) -> c_int>§config_promiscusity: Option<unsafe extern "C" fn(port_id: u16, to_on: u8) -> c_int>§config_allmulticast: Option<unsafe extern "C" fn(port_id: u16, to_on: u8) -> c_int>Trait Implementations§
Source§impl Clone for rte_kni_ops
impl Clone for rte_kni_ops
Source§fn clone(&self) -> rte_kni_ops
fn clone(&self) -> rte_kni_ops
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 Debug for rte_kni_ops
impl Debug for rte_kni_ops
Source§impl Default for rte_kni_ops
impl Default for rte_kni_ops
Source§fn default() -> rte_kni_ops
fn default() -> rte_kni_ops
Returns the “default value” for a type. Read more
Source§impl PartialEq for rte_kni_ops
impl PartialEq for rte_kni_ops
impl Copy for rte_kni_ops
impl StructuralPartialEq for rte_kni_ops
Auto Trait Implementations§
impl Freeze for rte_kni_ops
impl RefUnwindSafe for rte_kni_ops
impl Send for rte_kni_ops
impl Sync for rte_kni_ops
impl Unpin for rte_kni_ops
impl UnwindSafe for rte_kni_ops
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