#[repr(C)]pub struct ieee_802_3_phy_v2_interface {
pub send_frame: Option<unsafe extern "C" fn(obj: *mut conf_object_t, buf: *mut dbuffer_t, replace_crc: c_int) -> c_int>,
pub check_tx_bandwidth: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>,
pub add_mac: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t)>,
pub del_mac: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t)>,
pub add_mac_mask: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t, mask: byte_string_t)>,
pub del_mac_mask: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t, mask: byte_string_t)>,
pub set_promiscous_mode: Option<unsafe extern "C" fn(obj: *mut conf_object_t, enable: c_int)>,
}
Fields§
§send_frame: Option<unsafe extern "C" fn(obj: *mut conf_object_t, buf: *mut dbuffer_t, replace_crc: c_int) -> c_int>
§check_tx_bandwidth: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>
§add_mac: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t)>
§del_mac: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t)>
§add_mac_mask: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t, mask: byte_string_t)>
§del_mac_mask: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mac: byte_string_t, mask: byte_string_t)>
§set_promiscous_mode: Option<unsafe extern "C" fn(obj: *mut conf_object_t, enable: c_int)>
Trait Implementations§
source§impl Clone for ieee_802_3_phy_v2_interface
impl Clone for ieee_802_3_phy_v2_interface
source§fn clone(&self) -> ieee_802_3_phy_v2_interface
fn clone(&self) -> ieee_802_3_phy_v2_interface
Returns a copy 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 ieee_802_3_phy_v2_interface
impl Debug for ieee_802_3_phy_v2_interface
source§impl Default for ieee_802_3_phy_v2_interface
impl Default for ieee_802_3_phy_v2_interface
source§fn default() -> ieee_802_3_phy_v2_interface
fn default() -> ieee_802_3_phy_v2_interface
Returns the “default value” for a type. Read more
source§impl Hash for ieee_802_3_phy_v2_interface
impl Hash for ieee_802_3_phy_v2_interface
source§impl Ord for ieee_802_3_phy_v2_interface
impl Ord for ieee_802_3_phy_v2_interface
source§fn cmp(&self, other: &ieee_802_3_phy_v2_interface) -> Ordering
fn cmp(&self, other: &ieee_802_3_phy_v2_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialOrd for ieee_802_3_phy_v2_interface
impl PartialOrd for ieee_802_3_phy_v2_interface
impl Copy for ieee_802_3_phy_v2_interface
impl Eq for ieee_802_3_phy_v2_interface
impl StructuralPartialEq for ieee_802_3_phy_v2_interface
Auto Trait Implementations§
impl Freeze for ieee_802_3_phy_v2_interface
impl RefUnwindSafe for ieee_802_3_phy_v2_interface
impl Send for ieee_802_3_phy_v2_interface
impl Sync for ieee_802_3_phy_v2_interface
impl Unpin for ieee_802_3_phy_v2_interface
impl UnwindSafe for ieee_802_3_phy_v2_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)