pub enum RtpParseError {
UnsupportedVersion(u8),
Truncated {
expected: usize,
actual: usize,
},
PaddingInvalid(u8),
}Expand description
An error produced when parsing a packet.
Variants§
UnsupportedVersion(u8)
Version is unsupported. This implementation only supports version 2.
Truncated
There is not enough data available to successfully parse the packet
PaddingInvalid(u8)
The padding byte does not contain a valid value.
Trait Implementations§
Source§impl Debug for RtpParseError
impl Debug for RtpParseError
Source§impl Display for RtpParseError
impl Display for RtpParseError
Source§impl Error for RtpParseError
impl Error for RtpParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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