pub fn next_packet(
segments: &[TxSegment],
) -> (&TxMetadata, &[TxSegment], &[TxSegment])
Expand description
Gets the next packet from a list of segments, returning the packet metadata, the segments in the packet, and the remaining segments.
pub fn next_packet(
segments: &[TxSegment],
) -> (&TxMetadata, &[TxSegment], &[TxSegment])
Gets the next packet from a list of segments, returning the packet metadata, the segments in the packet, and the remaining segments.