Struct af_packet::Block
[−]
[src]
pub struct Block<'a> { /* fields omitted */ }
Contains a reference to a block as it exists in the ring buffer, its block descriptor, and a Vec of individual packets in that block.
Methods
impl<'a> Block<'a>
[src]
pub fn mark_as_consumed(&mut self)
[src]
Marks a block as free to be destroyed by the kernel
pub fn get_raw_packets(&self) -> Vec<RawPacket>
[src]
Returns a Vec
of details and references to raw packets that can be read from the ring buffer