Trait pcap::PacketCodec
source · pub trait PacketCodec {
type Item;
// Required method
fn decode(&mut self, packet: Packet<'_>) -> Self::Item;
}
Expand description
This trait is used to implement Stream and Iterator feature.
This is almost like map()
.