Function rtcp::packet::unmarshal[][src]

pub fn unmarshal<B>(
    raw_data: &mut B
) -> Result<Vec<Box<dyn Packet + Send + Sync>>, Error> where
    B: Buf
Expand description

Unmarshal takes an entire udp datagram (which may consist of multiple RTCP packets) and returns the unmarshaled packets it contains.

If this is a reduced-size RTCP packet a feedback packet (Goodbye, SliceLossIndication, etc) will be returned. Otherwise, the underlying type of the returned packet will be CompoundPacket.