pub enum RtcpParseError {
UnsupportedVersion(u8),
Truncated {
expected: usize,
actual: usize,
},
TooLarge {
expected: usize,
actual: usize,
},
InvalidPadding,
SdesValueTooLarge {
len: usize,
max: u8,
},
SdesPrivContentTruncated {
len: usize,
min: u8,
},
SdesPrivPrefixTooLarge {
len: usize,
available: u8,
},
WrongImplementation,
PacketTypeMismatch {
actual: u8,
requested: u8,
},
}
Expand description
Errors that can be produced when parsing a RTCP packet
Variants§
UnsupportedVersion(u8)
Unsupported version. This implementation only deals with version 2.
Truncated
The packet was too short to parse
TooLarge
The packet was too large to parse
InvalidPadding
Invalid Padding length 0.
SdesValueTooLarge
The SDES Value was too large
SdesPrivContentTruncated
The SDES PRIV content was too short
SdesPrivPrefixTooLarge
The SDES PRIV prefix was too large
WrongImplementation
This implementation does not handle this packet
PacketTypeMismatch
RTCP Packet type mismatch.
Trait Implementations§
Source§impl Debug for RtcpParseError
impl Debug for RtcpParseError
Source§impl Display for RtcpParseError
impl Display for RtcpParseError
Source§impl Error for RtcpParseError
impl Error for RtcpParseError
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()
Source§impl From<RtcpParseError> for RtcpWriteError
impl From<RtcpParseError> for RtcpWriteError
Source§fn from(err: RtcpParseError) -> Self
fn from(err: RtcpParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RtcpParseError
impl PartialEq for RtcpParseError
impl Eq for RtcpParseError
impl StructuralPartialEq for RtcpParseError
Auto Trait Implementations§
impl Freeze for RtcpParseError
impl RefUnwindSafe for RtcpParseError
impl Send for RtcpParseError
impl Sync for RtcpParseError
impl Unpin for RtcpParseError
impl UnwindSafe for RtcpParseError
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