pub enum RtpReaderError {
BufferTooShort(usize),
UnsupportedVersion(u8),
HeadersTruncated {
header_len: usize,
buffer_len: usize,
},
PaddingLengthInvalid(u8),
}
Expand description
Reasons for RtpHeader::new()
to fail
Variants§
BufferTooShort(usize)
Buffer too short to be valid RTP packet
UnsupportedVersion(u8)
Only RTP version 2 supported
HeadersTruncated
RTP headers truncated before end of buffer
Fields
PaddingLengthInvalid(u8)
The padding header at the end of the packet, if present, specifies the number of padding
bytes, including itself, and therefore cannot be less than 1
, or greater than the
available space.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RtpReaderError
impl RefUnwindSafe for RtpReaderError
impl Send for RtpReaderError
impl Sync for RtpReaderError
impl Unpin for RtpReaderError
impl UnwindSafe for RtpReaderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more