next_packet

Function next_packet 

Source
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.