pub struct LinuxPnetInterface { /* private fields */ }Implementations§
Trait Implementations§
Source§impl NetworkInterface for LinuxPnetInterface
impl NetworkInterface for LinuxPnetInterface
Source§fn send_frame(&mut self, frame: &[u8]) -> Result<(), PowerlinkError>
fn send_frame(&mut self, frame: &[u8]) -> Result<(), PowerlinkError>
Sends a raw Ethernet frame (including Ethernet header) over the network. Read more
Source§fn receive_frame(&mut self, buffer: &mut [u8]) -> Result<usize, PowerlinkError>
fn receive_frame(&mut self, buffer: &mut [u8]) -> Result<usize, PowerlinkError>
Attempts to receive a single raw Ethernet frame into the provided buffer.
This function should block until a frame is received or return an error/None
if non-blocking operation is configured. Read more
Source§fn local_node_id(&self) -> u8
fn local_node_id(&self) -> u8
Returns the Node ID assigned to this local device (Managing Node or Controlled Node).
Source§fn local_mac_address(&self) -> [u8; 6]
fn local_mac_address(&self) -> [u8; 6]
Returns the local MAC address of the interface.
Auto Trait Implementations§
impl !Freeze for LinuxPnetInterface
impl RefUnwindSafe for LinuxPnetInterface
impl Send for LinuxPnetInterface
impl Sync for LinuxPnetInterface
impl Unpin for LinuxPnetInterface
impl UnsafeUnpin for LinuxPnetInterface
impl UnwindSafe for LinuxPnetInterface
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