[][src]Trait pnet_datalink_bandwhich_fork::DataLinkReceiver

pub trait DataLinkReceiver: Send {
    fn next(&mut self) -> Result<&[u8]>;
}

Structure for receiving packets at the data link layer. Should be constructed using datalink_channel().

Required methods

fn next(&mut self) -> Result<&[u8]>

Get the next ethernet frame in the channel.

Loading content...

Implementors

Loading content...