Trait pnet::datalink::DataLinkReceiver

source ·
pub trait DataLinkReceiver: Send {
    // Required method
    fn next(&mut self) -> Result<&[u8], Error>;
}
Expand description

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

Required Methods§

source

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

Get the next ethernet frame in the channel.

Implementors§