Trait retina_datatypes::PacketList
source · pub trait PacketList {
// Required methods
fn new(first_pkt: &L4Pdu) -> Self;
fn track_packet(&mut self, pdu: &L4Pdu, reassembled: bool);
fn clear(&mut self);
}
Expand description
Trait for a datatype that is built from a list of raw packets.
Required Methods§
sourcefn new(first_pkt: &L4Pdu) -> Self
fn new(first_pkt: &L4Pdu) -> Self
Initialize internal data; called once per connection.
Note first_pkt
will also be delivered to update
.
sourcefn track_packet(&mut self, pdu: &L4Pdu, reassembled: bool)
fn track_packet(&mut self, pdu: &L4Pdu, reassembled: bool)
New packet in connection received (or reassembled, if reassembled=true)
Note this may be invoked both pre- and post-reassembly; types
should check reassembled
to avoid double-counting.
Object Safety§
This trait is not object safe.