#[non_exhaustive]pub enum PacketError {
Show 16 variants
ErrShortPacket,
ErrPayloadTooLarge,
ErrTooManySpatialLayers,
ErrTooManyPDiff,
ErrH265CorruptedPacket,
ErrH266CorruptedPacket,
ErrInvalidH265PacketType,
ErrH265PACIPHESTooLong,
StapASizeLargerThanBuffer(usize, usize),
NaluTypeIsNotHandled(u8),
ErrVP8CorruptedPacket,
ErrVP9CorruptedPacket,
ErrAv1CorruptedPacket,
ErrRedCorruptedPacket,
InvalidTelephoneEvent(&'static str),
ErrAmrWbCorruptedPacket,
}Expand description
Errors arising in packet- and depacketization.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ErrShortPacket
ErrPayloadTooLarge
ErrTooManySpatialLayers
ErrTooManyPDiff
ErrH265CorruptedPacket
ErrH266CorruptedPacket
ErrInvalidH265PacketType
ErrH265PACIPHESTooLong
StapASizeLargerThanBuffer(usize, usize)
NaluTypeIsNotHandled(u8)
ErrVP8CorruptedPacket
ErrVP9CorruptedPacket
ErrAv1CorruptedPacket
ErrRedCorruptedPacket
InvalidTelephoneEvent(&'static str)
ErrAmrWbCorruptedPacket
Trait Implementations§
Source§impl Debug for PacketError
impl Debug for PacketError
Source§impl Display for PacketError
impl Display for PacketError
impl Eq for PacketError
Source§impl Error for PacketError
impl Error for PacketError
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 PartialEq for PacketError
impl PartialEq for PacketError
impl StructuralPartialEq for PacketError
Auto Trait Implementations§
impl Forget for PacketError
impl Freeze for PacketError
impl Move for PacketError
impl RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl UnsafeUnpin for PacketError
impl UnwindSafe for PacketError
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