pub trait ReadablePdu<'a, Error: Debug> {
// Required method
fn from_wire(buf: Span<'a>) -> IResult<Span<'a>, Self, Error>
where Self: Sized;
}
Expand description
Generic trait for Readable Protocol Data Unit that doesn’t need any external input while parsing the packet.