Function observe
pub fn observe(datagram: &[u8]) -> Result<ObservedDatagram, CaptureError>Available on crate features
quic and std only.Expand description
Split a datagram into packets using only the invariant layout (RFC 8999 §5) and each version’s type bits and Length fields. A short header takes the rest of the datagram; bytes after a packet that cannot start another one are reported as trailing.