Trait pnet::datalink::DataLinkReceiver
[−]
pub trait DataLinkReceiver: Send {
fn iter<'a>(&'a mut self) -> Box<DataLinkChannelIterator + 'a>;
}Structure for receiving packets at the data link layer. Should be constructed using datalink_channel().
Required Methods
fn iter<'a>(&'a mut self) -> Box<DataLinkChannelIterator + 'a>
Returns an iterator over EthernetPackets.
This will likely be removed once other layer two types are supported.