pub trait PcapNgBlock<'a>: Sized {
const BLOCK_TYPE: BlockType;
// Required method
fn parse(body: &'a [u8]) -> IResult<&'a [u8], Self, ParsingError<'a>>;
}Expand description
A trait for types that represent a pcapng block.
Required Associated Constants§
Sourceconst BLOCK_TYPE: BlockType
const BLOCK_TYPE: BlockType
The type of block.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.