pub enum RtpParseError {
TooShort,
BadVersion(u8),
Truncated,
}Expand description
Errors from parsing a raw datagram as RTP.
Variants§
TooShort
The datagram is shorter than the 12-byte fixed header.
BadVersion(u8)
The version field was not 2.
Truncated
The header (incl. CSRCs / extension) claimed more bytes than the datagram has.
Trait Implementations§
Source§impl Clone for RtpParseError
impl Clone for RtpParseError
Source§impl Debug for RtpParseError
impl Debug for RtpParseError
Source§impl Display for RtpParseError
impl Display for RtpParseError
impl Eq for RtpParseError
Source§impl PartialEq for RtpParseError
impl PartialEq for RtpParseError
impl StructuralPartialEq for RtpParseError
Auto Trait Implementations§
impl Freeze for RtpParseError
impl RefUnwindSafe for RtpParseError
impl Send for RtpParseError
impl Sync for RtpParseError
impl Unpin for RtpParseError
impl UnsafeUnpin for RtpParseError
impl UnwindSafe for RtpParseError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.