Struct simics::api::interface::interfaces::EthernetProbeInterface
source · pub struct EthernetProbeInterface {
obj: *mut ConfObject,
interface: *mut ethernet_probe_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut ethernet_probe_interface
Implementations§
source§impl EthernetProbeInterface
impl EthernetProbeInterface
sourcepub fn attach_snooper(
&mut self,
snoop_fun: ethernet_probe_snoop_t,
user_data: *mut lang_void,
) -> Result<()>
pub fn attach_snooper( &mut self, snoop_fun: ethernet_probe_snoop_t, user_data: *mut lang_void, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn attach_probe(
&mut self,
snoop_fun: ethernet_probe_snoop_t,
user_data: *mut lang_void,
) -> Result<()>
pub fn attach_probe( &mut self, snoop_fun: ethernet_probe_snoop_t, user_data: *mut lang_void, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn send_frame(
&mut self,
to_side: eth_probe_side_t,
frame: *const frags_t,
crc_status: eth_frame_crc_status_t,
) -> Result<()>
pub fn send_frame( &mut self, to_side: eth_probe_side_t, frame: *const frags_t, crc_status: eth_frame_crc_status_t, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for EthernetProbeInterface
impl Interface for EthernetProbeInterface
source§const NAME: &'static [u8] = crate::api::sys::ETHERNET_PROBE_INTERFACE
const NAME: &'static [u8] = crate::api::sys::ETHERNET_PROBE_INTERFACE
The name of the interface
source§type InternalInterface = ethernet_probe_interface
type InternalInterface = ethernet_probe_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for EthernetProbeInterface
impl RefUnwindSafe for EthernetProbeInterface
impl !Send for EthernetProbeInterface
impl !Sync for EthernetProbeInterface
impl Unpin for EthernetProbeInterface
impl UnwindSafe for EthernetProbeInterface
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