Crate rtp_types

Source
Expand description

§rtp-types

An implementation of parsing, writing, and editing RTP packets as specified in RFC 3550

Modules§

prelude
Prelude module for defined/implementable traits

Structs§

RtpPacket
A parsed RTP packet. A wrapper around a byte slice. Each field is only accessed when needed.
RtpPacketBuilder
Struct for building a new RTP packet.
RtpPacketMut
Mutable parsed RTP packet for editing of some fields.
RtpPacketWriterMutSlice
An implementation of a RtpPacketWriter that writes to a &mut [u8]. Each packet will be written starting at the beginning of the provided slice.
RtpPacketWriterMutVec
An implementation of a RtpPacketWriter that writes to a &mut Vec<u8>. Each packet written will be appended to the provide Vec<u8>. You can clear() the vec in between packets to have each packet written from the beginning of the vec.
RtpPacketWriterVec
An implementation of a RtpPacketWriter that appends to a Vec<u8>.

Enums§

RtpParseError
An error produced when parsing a packet.
RtpWriteError
Errors produced when wrting a packet